tag_resource
(**kwargs)¶Add tags to the specified Amazon SNS topic. For an overview, see Amazon SNS Tags in the Amazon SNS Developer Guide .
When you use topic tags, keep the following guidelines in mind:
See also: AWS API Documentation
Request Syntax
response = client.tag_resource(
ResourceArn='string',
Tags=[
{
'Key': 'string',
'Value': 'string'
},
]
)
[REQUIRED]
The ARN of the topic to which to add tags.
[REQUIRED]
The tags to be added to the specified topic. A tag consists of a required key and an optional value.
The list of tags to be added to the specified topic.
The required key portion of the tag.
The optional value portion of the tag.
dict
Response Syntax
{}
Response Structure
Exceptions
SNS.Client.exceptions.ResourceNotFoundException
SNS.Client.exceptions.TagLimitExceededException
SNS.Client.exceptions.StaleTagException
SNS.Client.exceptions.TagPolicyException
SNS.Client.exceptions.InvalidParameterException
SNS.Client.exceptions.AuthorizationErrorException
SNS.Client.exceptions.ConcurrentAccessException