Jump to Content

This API Documentation is now deprecated

We are excited to announce our new API Documentation.

Class ListNamedShadowsForThingCommandProtected

Lists the shadows for the specified thing.

Requires permission to access the ListNamedShadowsForThing action.

Example

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

import { IoTDataPlaneClient, ListNamedShadowsForThingCommand } from "@aws-sdk/client-iot-data-plane"; // ES Modules import
// const { IoTDataPlaneClient, ListNamedShadowsForThingCommand } = require("@aws-sdk/client-iot-data-plane"); // CommonJS import
const client = new IoTDataPlaneClient(config);
const input = { // ListNamedShadowsForThingRequest
thingName: "STRING_VALUE", // required
nextToken: "STRING_VALUE",
pageSize: Number("int"),
};
const command = new ListNamedShadowsForThingCommand(input);
const response = await client.send(command);
// { // ListNamedShadowsForThingResponse
// results: [ // NamedShadowList
// "STRING_VALUE",
// ],
// nextToken: "STRING_VALUE",
// timestamp: Number("long"),
// };

Param

ListNamedShadowsForThingCommandInput

Returns

ListNamedShadowsForThingCommandOutput

See

Throws

InternalFailureException (server fault)

An unexpected error has occurred.

Throws

InvalidRequestException (client fault)

The request is not valid.

Throws

MethodNotAllowedException (client fault)

The specified combination of HTTP verb and URI is not supported.

Throws

ResourceNotFoundException (client fault)

The specified resource does not exist.

Throws

ServiceUnavailableException (server fault)

The service is temporarily unavailable.

Throws

ThrottlingException (client fault)

The rate exceeds the limit.

Throws

UnauthorizedException (client fault)

You are not authorized to perform this operation.

Throws

IoTDataPlaneServiceException

Base exception class for all service exceptions from IoTDataPlane service.

Hierarchy

Constructors

Properties

Methods

Constructors

Properties

Methods