We are excited to announce our new API Documentation.
Protected
Lists the 1-Click compatible devices associated with your AWS account.
Use a bare-bones client and the command you need to make an API call.
import { IoT1ClickDevicesServiceClient, ListDevicesCommand } from "@aws-sdk/client-iot-1click-devices-service"; // ES Modules import// const { IoT1ClickDevicesServiceClient, ListDevicesCommand } = require("@aws-sdk/client-iot-1click-devices-service"); // CommonJS importconst client = new IoT1ClickDevicesServiceClient(config);const input = { // ListDevicesRequest DeviceType: "STRING_VALUE", MaxResults: Number("int"), NextToken: "STRING_VALUE",};const command = new ListDevicesCommand(input);const response = await client.send(command);// { // ListDevicesResponse// Devices: [ // __listOfDeviceDescription// { // DeviceDescription// Arn: "STRING_VALUE",// Attributes: { // DeviceAttributes// "<keys>": "STRING_VALUE",// },// DeviceId: "STRING_VALUE",// Enabled: true || false,// RemainingLife: Number("double"),// Type: "STRING_VALUE",// Tags: { // __mapOf__string// "<keys>": "STRING_VALUE",// },// },// ],// NextToken: "STRING_VALUE",// };
ListDevicesCommandInput
ListDevicesCommandOutput
input
response
config
InternalFailureException (server fault)
InvalidRequestException (client fault)
RangeNotSatisfiableException (client fault)
IoT1ClickDevicesServiceServiceException
Base exception class for all service exceptions from IoT1ClickDevicesService service.
Readonly
Static
Lists the 1-Click compatible devices associated with your AWS account.
Example
Use a bare-bones client and the command you need to make an API call.
Param
ListDevicesCommandInput
Returns
ListDevicesCommandOutput
See
input
shape.response
shape.config
shape.Throws
InternalFailureException (server fault)
Throws
InvalidRequestException (client fault)
Throws
RangeNotSatisfiableException (client fault)
Throws
IoT1ClickDevicesServiceServiceException
Base exception class for all service exceptions from IoT1ClickDevicesService service.