Options
All
  • Public
  • Public/Protected
  • All
Menu

Class UpdateDeviceStateCommand

Using a Boolean value (true or false), this operation enables or disables the device given a device ID.

example

Use a bare-bones client and the command you need to make an API call.

import { IoT1ClickDevicesServiceClient, UpdateDeviceStateCommand } from "@aws-sdk/client-iot-1click-devices-service"; // ES Modules import
// const { IoT1ClickDevicesServiceClient, UpdateDeviceStateCommand } = require("@aws-sdk/client-iot-1click-devices-service"); // CommonJS import
const client = new IoT1ClickDevicesServiceClient(config);
const command = new UpdateDeviceStateCommand(input);
const response = await client.send(command);
see

UpdateDeviceStateCommandInput for command's input shape.

see

UpdateDeviceStateCommandOutput for command's response shape.

see

config for IoT1ClickDevicesServiceClient's config shape.

Hierarchy

Implements

Index

Constructors

constructor

Properties

Readonly input

input: UpdateDeviceStateCommandInput

Readonly middlewareStack

Methods

Static getEndpointParameterInstructions

  • Returns EndpointParameterInstructions