tag_resource
(**kwargs)¶Applies tags to an existing Amazon Web Services X-Ray group or sampling rule.
See also: AWS API Documentation
Request Syntax
response = client.tag_resource(
ResourceARN='string',
Tags=[
{
'Key': 'string',
'Value': 'string'
},
]
)
[REQUIRED]
The Amazon Resource Number (ARN) of an X-Ray group or sampling rule.
[REQUIRED]
A map that contains one or more tag keys and tag values to attach to an X-Ray group or sampling rule. For more information about ways to use tags, see Tagging Amazon Web Services resources in the Amazon Web Services General Reference .
The following restrictions apply to tags:
aws:
as a prefix for keys; it's reserved for Amazon Web Services use. You cannot edit or delete system tags.A map that contains tag keys and tag values to attach to an Amazon Web Services X-Ray group or sampling rule. For more information about ways to use tags, see Tagging Amazon Web Services resources in the Amazon Web Services General Reference .
The following restrictions apply to tags:
aws:
as a prefix for keys; it's reserved for Amazon Web Services use. You cannot edit or delete system tags.A tag key, such as Stage
or Name
. A tag key cannot be empty. The key can be a maximum of 128 characters, and can contain only Unicode letters, numbers, or separators, or the following special characters: + - = . _ : /
An optional tag value, such as Production
or test-only
. The value can be a maximum of 255 characters, and contain only Unicode letters, numbers, or separators, or the following special characters: + - = . _ : /
dict
Response Syntax
{}
Response Structure
Exceptions
XRay.Client.exceptions.InvalidRequestException
XRay.Client.exceptions.ThrottledException
XRay.Client.exceptions.ResourceNotFoundException
XRay.Client.exceptions.TooManyTagsException