:doc:`Pinpoint <../../pinpoint>` / Client / list_tags_for_resource

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



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

  

  Retrieves all the tags (keys and values) that are associated with an application, campaign, message template, or segment.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-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.

    

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

    
    ::

      {
          'TagsModel': {
              'tags': {
                  'string': 'string'
              }
          }
      }
      
    **Response Structure**

    

    - *(dict) --* 

      The request succeeded.

      
      

      - **TagsModel** *(dict) --* 

        Specifies the tags (keys and values) for an application, campaign, message template, or segment.

        
        

        - **tags** *(dict) --* 

          A string-to-string map of key-value pairs that defines the tags for an application, campaign, message template, or segment. Each of these resources can have a maximum of 50 tags.

           

          Each tag consists of a required tag key and an associated tag value. The maximum length of a tag key is 128 characters. The maximum length of a tag value is 256 characters.

          
          

          - *(string) --* 
            

            - *(string) --* 
      
    
    
  