We are excited to announce our new API Documentation.
Protected
Lists the shadows for the specified thing.
Requires permission to access the ListNamedShadowsForThing action.
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 importconst 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"),// };
ListNamedShadowsForThingCommandInput
ListNamedShadowsForThingCommandOutput
input
response
config
InternalFailureException (server fault)
An unexpected error has occurred.
InvalidRequestException (client fault)
The request is not valid.
MethodNotAllowedException (client fault)
The specified combination of HTTP verb and URI is not supported.
ResourceNotFoundException (client fault)
The specified resource does not exist.
ServiceUnavailableException (server fault)
The service is temporarily unavailable.
ThrottlingException (client fault)
The rate exceeds the limit.
UnauthorizedException (client fault)
You are not authorized to perform this operation.
IoTDataPlaneServiceException
Base exception class for all service exceptions from IoTDataPlane service.
Readonly
Static
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.
Param
ListNamedShadowsForThingCommandInput
Returns
ListNamedShadowsForThingCommandOutput
See
input
shape.response
shape.config
shape.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.