:doc:`DeviceFarm <../../devicefarm>` / Client / list_tags_for_resource

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



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

  

  List the tags for an AWS Device Farm resource.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/ListTagsForResource>`_  


  **Request Syntax**
  ::

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

    The Amazon Resource Name (ARN) of the resource or resources for which to list tags. You can associate tags with the following Device Farm resources: ``PROJECT``, ``TESTGRID_PROJECT``, ``RUN``, ``NETWORK_PROFILE``, ``INSTANCE_PROFILE``, ``DEVICE_INSTANCE``, ``SESSION``, ``DEVICE_POOL``, ``DEVICE``, and ``VPCE_CONFIGURATION``.

    

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

    
    ::

      {
          'Tags': [
              {
                  'Key': 'string',
                  'Value': 'string'
              },
          ]
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **Tags** *(list) --* 

        The tags to add to the resource. A tag is an array of key-value pairs. Tag keys can have a maximum character length of 128 characters. Tag values can have a maximum length of 256 characters.

        
        

        - *(dict) --* 

          The metadata that you apply to a resource to help you categorize and organize it. Each tag consists of a key and an optional value, both of which you define. Tag keys can have a maximum character length of 128 characters. Tag values can have a maximum length of 256 characters.

          
          

          - **Key** *(string) --* 

            One part of a key-value pair that makes up a tag. A ``key`` is a general label that acts like a category for more specific tag values.

            
          

          - **Value** *(string) --* 

            The optional part of a key-value pair that makes up a tag. A ``value`` acts as a descriptor in a tag category (key).

            
      
    
  
  **Exceptions**
  
  *   :py:class:`DeviceFarm.Client.exceptions.ArgumentException`

  
  *   :py:class:`DeviceFarm.Client.exceptions.NotFoundException`

  
  *   :py:class:`DeviceFarm.Client.exceptions.TagOperationException`

  