:doc:`AppConfig <../../appconfig>` / Client / list_tags_for_resource

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



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

  

  Retrieves the list of key-value tags assigned to the resource.

  

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


  **Request Syntax**
  ::

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

    The resource ARN.

    

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

    
    ::

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

    

    - *(dict) --* 
      

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

        Metadata to assign to AppConfig resources. Tags help organize and categorize your AppConfig resources. Each tag consists of a key and an optional value, both of which you define.

        
        

        - *(string) --* 
          

          - *(string) --* 
    
  
  
  **Exceptions**
  
  *   :py:class:`AppConfig.Client.exceptions.ResourceNotFoundException`

  
  *   :py:class:`AppConfig.Client.exceptions.BadRequestException`

  
  *   :py:class:`AppConfig.Client.exceptions.InternalServerException`

  

  **Examples**

  The following list-tags-for-resource example lists the tags of a specified application.
  ::

    response = client.list_tags_for_resource(
        ResourceArn='arn:aws:appconfig:us-east-1:111122223333:application/339ohji',
    )
    
    print(response)

  
  Expected Output:
  ::

    {
        'Tags': {
            'group1': '1',
        },
        'ResponseMetadata': {
            '...': '...',
        },
    }

  