:doc:`IoTDataPlane <../../iot-data>` / Client / list_named_shadows_for_thing

****************************
list_named_shadows_for_thing
****************************



.. py:method:: IoTDataPlane.Client.list_named_shadows_for_thing(**kwargs)

  

  Lists the shadows for the specified thing.

   

  Requires permission to access the `ListNamedShadowsForThing <https://docs.aws.amazon.com/service-authorization/latest/reference/list_awsiot.html#awsiot-actions-as-permissions>`__ action.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/iot-data-2015-05-28/ListNamedShadowsForThing>`_  


  **Request Syntax**
  ::

    response = client.list_named_shadows_for_thing(
        thingName='string',
        nextToken='string',
        pageSize=123
    )
    
  :type thingName: string
  :param thingName: **[REQUIRED]** 

    The name of the thing.

    

  
  :type nextToken: string
  :param nextToken: 

    The token to retrieve the next set of results.

    

  
  :type pageSize: integer
  :param pageSize: 

    The result page size.

    

  
  
  :rtype: dict
  :returns: 
    
    **Response Syntax**

    
    ::

      {
          'results': [
              'string',
          ],
          'nextToken': 'string',
          'timestamp': 123
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **results** *(list) --* 

        The list of shadows for the specified thing.

        
        

        - *(string) --* 
    
      

      - **nextToken** *(string) --* 

        The token to use to get the next set of results, or **null** if there are no additional results.

        
      

      - **timestamp** *(integer) --* 

        The Epoch date and time the response was generated by IoT.

        
  
  **Exceptions**
  
  *   :py:class:`IoTDataPlane.Client.exceptions.ResourceNotFoundException`

  
  *   :py:class:`IoTDataPlane.Client.exceptions.InvalidRequestException`

  
  *   :py:class:`IoTDataPlane.Client.exceptions.ThrottlingException`

  
  *   :py:class:`IoTDataPlane.Client.exceptions.UnauthorizedException`

  
  *   :py:class:`IoTDataPlane.Client.exceptions.ServiceUnavailableException`

  
  *   :py:class:`IoTDataPlane.Client.exceptions.InternalFailureException`

  
  *   :py:class:`IoTDataPlane.Client.exceptions.MethodNotAllowedException`

  