Jump to Content

This API Documentation is now deprecated

We are excited to announce our new API Documentation.

Class ListDeviceResourcesCommandProtected

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.

import { SnowDeviceManagementClient, ListDeviceResourcesCommand } from "@aws-sdk/client-snow-device-management"; // ES Modules import
// const { SnowDeviceManagementClient, ListDeviceResourcesCommand } = require("@aws-sdk/client-snow-device-management"); // CommonJS import
const 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",
// };

Param

ListDeviceResourcesCommandInput

Returns

ListDeviceResourcesCommandOutput

See

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.

Hierarchy

Constructors

Properties

Methods

Constructors

Properties

Methods