:doc:`SnowDeviceManagement <../../snow-device-management>` / Client / list_device_resources

*********************
list_device_resources
*********************



.. py:method:: SnowDeviceManagement.Client.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 <https://docs.aws.amazon.com/goto/WebAPI/snow-device-management-2021-08-04/ListDeviceResources>`_  


  **Request Syntax**
  ::

    response = client.list_device_resources(
        managedDeviceId='string',
        maxResults=123,
        nextToken='string',
        type='string'
    )
    
  :type managedDeviceId: string
  :param managedDeviceId: **[REQUIRED]** 

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

    

  
  :type maxResults: integer
  :param maxResults: 

    The maximum number of resources per page.

    

  
  :type nextToken: string
  :param nextToken: 

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

    

  
  :type type: string
  :param type: 

    A structure used to filter the results by type of resource.

    

  
  
  :rtype: 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**
  
  *   :py:class:`SnowDeviceManagement.Client.exceptions.ThrottlingException`

  
  *   :py:class:`SnowDeviceManagement.Client.exceptions.InternalServerException`

  
  *   :py:class:`SnowDeviceManagement.Client.exceptions.ResourceNotFoundException`

  
  *   :py:class:`SnowDeviceManagement.Client.exceptions.ValidationException`

  
  *   :py:class:`SnowDeviceManagement.Client.exceptions.AccessDeniedException`

  