We are excited to announce our new API Documentation.
Protected
Returns a list of the Amazon Web Services resources available for a device. Currently, Amazon EC2 instances are the only supported resource type.
Use a bare-bones client and the command you need to make an API call.
import { SnowDeviceManagementClient, ListDeviceResourcesCommand } from "@aws-sdk/client-snow-device-management"; // ES Modules import// const { SnowDeviceManagementClient, ListDeviceResourcesCommand } = require("@aws-sdk/client-snow-device-management"); // CommonJS importconst client = new SnowDeviceManagementClient(config);const input = { // ListDeviceResourcesInput managedDeviceId: "STRING_VALUE", // required type: "STRING_VALUE", maxResults: Number("int"), nextToken: "STRING_VALUE",};const command = new ListDeviceResourcesCommand(input);const response = await client.send(command);// { // ListDeviceResourcesOutput// resources: [ // ResourceSummaryList// { // ResourceSummary// resourceType: "STRING_VALUE", // required// arn: "STRING_VALUE",// id: "STRING_VALUE",// },// ],// nextToken: "STRING_VALUE",// };
ListDeviceResourcesCommandInput
ListDeviceResourcesCommandOutput
input
response
config
AccessDeniedException (client fault)
You don't have sufficient access to perform this action.
InternalServerException (server fault)
An unexpected error occurred while processing the request.
ResourceNotFoundException (client fault)
The request references a resource that doesn't exist.
ThrottlingException (client fault)
The request was denied due to request throttling.
ValidationException (client fault)
The input fails to satisfy the constraints specified by an Amazon Web Services service.
SnowDeviceManagementServiceException
Base exception class for all service exceptions from SnowDeviceManagement service.
Readonly
Static
Returns a list of the Amazon Web Services resources available for a device. Currently, Amazon EC2 instances are the only supported resource type.
Example
Use a bare-bones client and the command you need to make an API call.
Param
ListDeviceResourcesCommandInput
Returns
ListDeviceResourcesCommandOutput
See
input
shape.response
shape.config
shape.Throws
AccessDeniedException (client fault)
You don't have sufficient access to perform this action.
Throws
InternalServerException (server fault)
An unexpected error occurred while processing the request.
Throws
ResourceNotFoundException (client fault)
The request references a resource that doesn't exist.
Throws
ThrottlingException (client fault)
The request was denied due to request throttling.
Throws
ValidationException (client fault)
The input fails to satisfy the constraints specified by an Amazon Web Services service.
Throws
SnowDeviceManagementServiceException
Base exception class for all service exceptions from SnowDeviceManagement service.