:doc:`ElasticBeanstalk <../../elasticbeanstalk>` / Client / list_tags_for_resource

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



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

  

  Return the tags applied to an AWS Elastic Beanstalk resource. The response contains a list of tag key-value pairs.

   

  Elastic Beanstalk supports tagging of all of its resources. For details about resource tagging, see `Tagging Application Resources <https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/applications-tagging-resources.html>`__.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/ListTagsForResource>`_  


  **Request Syntax**
  ::

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

    The Amazon Resource Name (ARN) of the resouce for which a tag list is requested.

     

    Must be the ARN of an Elastic Beanstalk resource.

    

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

    
    ::

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

    

    - *(dict) --* 
      

      - **ResourceArn** *(string) --* 

        The Amazon Resource Name (ARN) of the resource for which a tag list was requested.

        
      

      - **ResourceTags** *(list) --* 

        A list of tag key-value pairs.

        
        

        - *(dict) --* 

          Describes a tag applied to a resource in an environment.

          
          

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

            The key of the tag.

            
          

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

            The value of the tag.

            
      
    
  
  **Exceptions**
  
  *   :py:class:`ElasticBeanstalk.Client.exceptions.InsufficientPrivilegesException`

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

  
  *   :py:class:`ElasticBeanstalk.Client.exceptions.ResourceTypeNotSupportedException`

  