:doc:`IoTEvents <../../iotevents>` / Client / list_tags_for_resource

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



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

  

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

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/iotevents-2018-07-27/ListTagsForResource>`_  


  **Request Syntax**
  ::

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

    The ARN of the resource.

    

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

    
    ::

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

    

    - *(dict) --* 
      

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

        The list of tags assigned to the resource.

        
        

        - *(dict) --* 

          Metadata that can be used to manage the resource.

          
          

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

            The tag's key.

            
          

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

            The tag's value.

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

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

  
  *   :py:class:`IoTEvents.Client.exceptions.ResourceInUseException`

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

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

  