tag_resource

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

Request Syntax

response = client.tag_resource(
    ResourceArn='string',
    TagsModel={
        'tags': {
            'string': 'string'
        }
    }
)
Parameters
  • ResourceArn (string) --

    [REQUIRED]

    The Amazon Resource Name (ARN) of the resource.

  • TagsModel (dict) --

    [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