:doc:`IoTThingsGraph <../../iotthingsgraph>` / Client / list_tags_for_resource

**********************
list_tags_for_resource
**********************



.. py:method:: IoTThingsGraph.Client.list_tags_for_resource(**kwargs)

  

  Lists all tags on an AWS IoT Things Graph resource.

  

  .. danger::

        This operation is deprecated and may not function as expected. This operation should not be used going forward and is only kept for the purpose of backwards compatiblity.


  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/iotthingsgraph-2018-09-06/ListTagsForResource>`_  


  **Request Syntax**
  ::

    response = client.list_tags_for_resource(
        maxResults=123,
        resourceArn='string',
        nextToken='string'
    )
    
  :type maxResults: integer
  :param maxResults: 

    The maximum number of tags to return.

    

  
  :type resourceArn: string
  :param resourceArn: **[REQUIRED]** 

    The Amazon Resource Name (ARN) of the resource whose tags are to be returned.

    

  
  :type nextToken: string
  :param nextToken: 

    The token that specifies the next page of results to return.

    

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

    
    ::

      {
          'tags': [
              {
                  'key': 'string',
                  'value': 'string'
              },
          ],
          'nextToken': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **tags** *(list) --* 

        List of tags returned by the ``ListTagsForResource`` operation.

        
        

        - *(dict) --* 

          Metadata assigned to an AWS IoT Things Graph resource consisting of a key-value pair.

          
          

          - **key** *(string) --* 

            The required name of the tag. The string value can be from 1 to 128 Unicode characters in length.

            
          

          - **value** *(string) --* 

            The optional value of the tag. The string value can be from 1 to 256 Unicode characters in length.

            
      
    
      

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

        The token that specifies the next page of results to return.

        
  
  **Exceptions**
  
  *   :py:class:`IoTThingsGraph.Client.exceptions.InvalidRequestException`

  
  *   :py:class:`IoTThingsGraph.Client.exceptions.ResourceAlreadyExistsException`

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

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

  