Jump to Content

This API Documentation is now deprecated

We are excited to announce our new API Documentation.

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.

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 import
const 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",
// };

Param

ListDevicesCommandInput

Returns

ListDevicesCommandOutput

See

Throws

InternalFailureException (server fault)

Throws

InvalidRequestException (client fault)

Throws

RangeNotSatisfiableException (client fault)

Throws

IoT1ClickDevicesServiceServiceException

Base exception class for all service exceptions from IoT1ClickDevicesService service.

Hierarchy

Constructors

Properties

Methods

Constructors

Properties

Methods