:doc:`MailManager <../../mailmanager>` / Client / list_tags_for_resource

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



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

  

  Retrieves the list of tags (keys and values) assigned to the resource.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/mailmanager-2023-10-17/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 to retrieve tags from.

    

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

    
    ::

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

    

    - *(dict) --* 
      

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

        The tags used to organize, track, or control access for the resource. For example, { "tags": {"key1":"value1", "key2":"value2"} }.

        
        

        - *(dict) --* 

          A key-value pair (the value is optional), that you can define and assign to Amazon Web Services resources.

          
          

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

            The key of the key-value tag.

            
          

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

            The value of the key-value tag.

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

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

  