:doc:`BackupGateway <../../backup-gateway>` / Client / list_tags_for_resource

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



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

  

  Lists the tags applied to the resource identified by its Amazon Resource Name (ARN).

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-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's tags to list.

    

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

    
    ::

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

    

    - *(dict) --* 
      

      - **ResourceArn** *(string) --* 

        The Amazon Resource Name (ARN) of the resource's tags that you listed.

        
      

      - **Tags** *(list) --* 

        A list of the resource's tags.

        
        

        - *(dict) --* 

          A key-value pair you can use to manage, filter, and search for your resources. Allowed characters include UTF-8 letters, numbers, spaces, and the following characters: + - = . _ : /.

          
          

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

            The key part of a tag's key-value pair. The key can't start with ``aws:``.

            
          

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

            The value part of a tag's key-value pair.

            
      
    
  
  **Exceptions**
  
  *   :py:class:`BackupGateway.Client.exceptions.ValidationException`

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

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

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

  