tag_resource
(**kwargs)¶Adds a tag to a resource. Tags are supported only for monitors in Amazon CloudWatch Internet Monitor. You can add a maximum of 50 tags in Internet Monitor.
A minimum of one tag is required for this call. It returns an error if you use the TagResource
request with 0 tags.
See also: AWS API Documentation
Request Syntax
response = client.tag_resource(
ResourceArn='string',
Tags={
'string': 'string'
}
)
[REQUIRED]
The Amazon Resource Name (ARN) for a tag that you add to a resource. Tags are supported only for monitors in Amazon CloudWatch Internet Monitor.
[REQUIRED]
Tags that you add to a resource. You can add a maximum of 50 tags in Internet Monitor.
dict
Response Syntax
{}
Response Structure
Exceptions
CloudWatchInternetMonitor.Client.exceptions.TooManyRequestsException
CloudWatchInternetMonitor.Client.exceptions.AccessDeniedException
CloudWatchInternetMonitor.Client.exceptions.NotFoundException
CloudWatchInternetMonitor.Client.exceptions.BadRequestException
CloudWatchInternetMonitor.Client.exceptions.InternalServerErrorException