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
with your own
information.user input placeholder
Command
aws snow-device-management list-device-resources \ --managed-device-id
smd-fictbgr3rbcje111
\ --typeAWS::EC2::Instance
--next-tokenYAQGPwAT9l3wVKaGYjt4yS34MiQLWvzcShe9oIeDJr05AT4rXSprqcqQhhBEYRfcerAp0YYbJmRT=
--max-results10
Exceptions
ValidationException InternalServerException ThrottlingException AccessDeniedException
Output
{ "resources": [ { "id": "s.i-84fa8a27d3e15e111", "resourceType": "AWS::EC2::Instance" } ] }