:doc:`RecycleBin <../../rbin>` / Client / list_tags_for_resource

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



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

  

  Lists the tags assigned to a retention rule.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/rbin-2021-06-15/ListTagsForResource>`_  


  **Request Syntax**
  ::

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

    The Amazon Resource Name (ARN) of the retention rule.

    

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

    
    ::

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

    

    - *(dict) --* 
      

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

        Information about the tags assigned to the retention rule.

        
        

        - *(dict) --* 

          Information about the tags to assign to the retention rule.

          
          

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

            The tag key.

            
          

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

            The tag value.

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

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

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

  