List available resources - Amazon Snowball Edge Developer Guide
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China.

List available resources

To return a list of the Amazon resources available for a device, use the list-device-resources command. To filter the list by a specific type of resource, use the --type parameter. Currently, Amazon EC2 instances are the only supported resource type. --max-results and --next-token are optional. For more information, see Using Amazon CLI pagination options in the "Amazon Command Line Interface User Guide".

To list the available resources for a device, use the following command. Replace each user input placeholder with your own information.

Command

aws snow-device-management list-device-resources \ --managed-device-id smd-fictbgr3rbcje111 \ --type AWS::EC2::Instance --next-token YAQGPwAT9l3wVKaGYjt4yS34MiQLWvzcShe9oIeDJr05AT4rXSprqcqQhhBEYRfcerAp0YYbJmRT= --max-results 10

Exceptions

ValidationException InternalServerException ThrottlingException AccessDeniedException

Output

{ "resources": [ { "id": "s.i-84fa8a27d3e15e111", "resourceType": "AWS::EC2::Instance" } ] }