:doc:`EKS <../../eks>` / Client / list_tags_for_resource

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



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

  

  List the tags for an Amazon EKS resource.

  

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


  **Request Syntax**
  ::

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

    The Amazon Resource Name (ARN) that identifies the resource to list tags for.

    

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

    
    ::

      {
          'tags': {
              'string': 'string'
          }
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **tags** *(dict) --* 

        The tags for the resource.

        
        

        - *(string) --* 

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

          
          

          - *(string) --* 

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

            
    
  
  
  **Exceptions**
  
  *   :py:class:`EKS.Client.exceptions.BadRequestException`

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

  

  **Examples**

  This example lists all of the tags for the `beta` cluster.
  ::

    response = client.list_tags_for_resource(
        resourceArn='arn:aws:eks:us-west-2:012345678910:cluster/beta',
    )
    
    print(response)

  
  Expected Output:
  ::

    {
        'tags': {
            'aws:tag:domain': 'beta',
        },
        'ResponseMetadata': {
            '...': '...',
        },
    }

  