:doc:`ECRPublic <../../ecr-public>` / Client / list_tags_for_resource

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



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

  

  List the tags for an Amazon ECR Public resource.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/ecr-public-2020-10-30/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 the tags for. Currently, the supported resource is an Amazon ECR Public repository.

    

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

    
    ::

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

    

    - *(dict) --* 
      

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

        The tags for the resource.

        
        

        - *(dict) --* 

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

          
          

          - **Key** *(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.

            
          

          - **Value** *(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:`ECRPublic.Client.exceptions.InvalidParameterException`

  
  *   :py:class:`ECRPublic.Client.exceptions.RepositoryNotFoundException`

  
  *   :py:class:`ECRPublic.Client.exceptions.UnsupportedCommandException`

  
  *   :py:class:`ECRPublic.Client.exceptions.ServerException`

  