:doc:`CodeArtifact <../../codeartifact>` / Client / list_tags_for_resource

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



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

  

  Gets information about Amazon Web Services tags for a specified Amazon Resource Name (ARN) in CodeArtifact.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/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 to get tags for.

    

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

    
    ::

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

    

    - *(dict) --* 
      

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

        A list of tag key and value pairs associated with the specified resource.

        
        

        - *(dict) --* 

          A tag is a key-value pair that can be used to manage, search for, or filter resources in CodeArtifact.

          
          

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

            The tag key.

            
          

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

            The tag value.

            
      
    
  
  **Exceptions**
  
  *   :py:class:`CodeArtifact.Client.exceptions.AccessDeniedException`

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

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

  
  *   :py:class:`CodeArtifact.Client.exceptions.ValidationException`

  