:doc:`CodeConnections <../../codeconnections>` / Client / list_tags_for_resource

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



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

  

  Gets the set of key-value pairs (metadata) that are used to manage the resource.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/codeconnections-2023-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 resource for which you want to get information about tags, if any.

    

  
  
  :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 is used to manage the resource.

           

          This tag is available for use by Amazon Web Services services that support tags.

          
          

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

            The tag's key.

            
          

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

            The tag's value.

            
      
    
  
  **Exceptions**
  
  *   :py:class:`CodeConnections.Client.exceptions.ResourceNotFoundException`

  