list_device_resources

list_device_resources(**kwargs)

Returns a list of the Amazon Web Services resources available for a device. Currently, Amazon EC2 instances are the only supported resource type.

See also: AWS API Documentation

Request Syntax

response = client.list_device_resources(
    managedDeviceId='string',
    maxResults=123,
    nextToken='string',
    type='string'
)
Parameters
  • managedDeviceId (string) --

    [REQUIRED]

    The ID of the managed device that you are listing the resources of.

  • maxResults (integer) -- The maximum number of resources per page.
  • nextToken (string) -- A pagination token to continue to the next page of results.
  • type (string) -- A structure used to filter the results by type of resource.
Return type

dict

Returns

Response Syntax

{
    'nextToken': 'string',
    'resources': [
        {
            'arn': 'string',
            'id': 'string',
            'resourceType': 'string'
        },
    ]
}

Response Structure

  • (dict) --

    • nextToken (string) --

      A pagination token to continue to the next page of results.

    • resources (list) --

      A structure defining the resource's type, Amazon Resource Name (ARN), and ID.

      • (dict) --

        A summary of a resource available on the device.

        • arn (string) --

          The Amazon Resource Name (ARN) of the resource.

        • id (string) --

          The ID of the resource.

        • resourceType (string) --

          The resource type.

Exceptions

  • SnowDeviceManagement.Client.exceptions.ThrottlingException
  • SnowDeviceManagement.Client.exceptions.InternalServerException
  • SnowDeviceManagement.Client.exceptions.ResourceNotFoundException
  • SnowDeviceManagement.Client.exceptions.ValidationException
  • SnowDeviceManagement.Client.exceptions.AccessDeniedException