:doc:`IoTAnalytics <../../iotanalytics>` / Client / list_tags_for_resource

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



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

  

  Lists the tags (metadata) that you have assigned to the resource.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/ListTagsForResource>`_  


  **Request Syntax**
  ::

    response = client.list_tags_for_resource(
        resourceArn='string'
    )
    
  :type resourceArn: string
  :param resourceArn: **[REQUIRED]** 

    The ARN of the resource whose tags you want to list.

    

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

    
    ::

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

    

    - *(dict) --* 
      

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

        The tags (metadata) that you have assigned to the resource.

        
        

        - *(dict) --* 

          A set of key-value pairs that are used to manage the resource.

          
          

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

            The tag's key.

            
          

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

            The tag's value.

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

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

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

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

  
  *   :py:class:`IoTAnalytics.Client.exceptions.LimitExceededException`

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

  