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

************
tag_resource
************



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

  

  Adds one or more tags (keys and values) to an application, campaign, message template, or segment.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/TagResource>`_  


  **Request Syntax**
  ::

    response = client.tag_resource(
        ResourceArn='string',
        TagsModel={
            'tags': {
                'string': 'string'
            }
        }
    )
    
  :type ResourceArn: string
  :param ResourceArn: **[REQUIRED]** 

    The Amazon Resource Name (ARN) of the resource.

    

  
  :type TagsModel: dict
  :param TagsModel: **[REQUIRED]** 

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

    

  
    - **tags** *(dict) --* **[REQUIRED]** 

      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) --* 

        
  

  
  
  :returns: None