:doc:`CodeGuruReviewer <../../codeguru-reviewer>` / Client / list_tags_for_resource

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



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

  

  Returns the list of tags associated with an associated repository resource.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/ListTagsForResource>`_  


  **Request Syntax**
  ::

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

    The Amazon Resource Name (ARN) of the `RepositoryAssociation <https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_RepositoryAssociation.html>`__ object. You can retrieve this ARN by calling `ListRepositoryAssociations <https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_ListRepositoryAssociations.html>`__.

    

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

    
    ::

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

    

    - *(dict) --* 
      

      - **Tags** *(dict) --* 

        An array of key-value pairs used to tag an associated repository. A tag is a custom attribute label with two parts:

         

        
        * A *tag key* (for example, ``CostCenter``, ``Environment``, ``Project``, or ``Secret``). Tag keys are case sensitive.
         
        * An optional field known as a *tag value* (for example, ``111122223333``, ``Production``, or a team name). Omitting the tag value is the same as using an empty string. Like tag keys, tag values are case sensitive.
        

        
        

        - *(string) --* 
          

          - *(string) --* 
    
  
  
  **Exceptions**
  
  *   :py:class:`CodeGuruReviewer.Client.exceptions.InternalServerException`

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

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

  