SNS / Client / list_tags_for_resource
list_tags_for_resource#
- SNS.Client.list_tags_for_resource(**kwargs)#
List all tags added to the specified Amazon SNS topic. For an overview, see Amazon SNS Tags in the Amazon Simple Notification Service Developer Guide.
See also: AWS API Documentation
Request Syntax
response = client.list_tags_for_resource( ResourceArn='string' )
- Parameters:
ResourceArn (string) –
[REQUIRED]
The ARN of the topic for which to list tags.
- Return type:
dict
- Returns:
Response Syntax
{ 'Tags': [ { 'Key': 'string', 'Value': 'string' }, ] }
Response Structure
(dict) –
Tags (list) –
The tags associated with the specified topic.
(dict) –
The list of tags to be added to the specified topic.
Key (string) –
The required key portion of the tag.
Value (string) –
The optional value portion of the tag.
Exceptions
SNS.Client.exceptions.ResourceNotFoundException
SNS.Client.exceptions.TagPolicyException
SNS.Client.exceptions.InvalidParameterException
SNS.Client.exceptions.AuthorizationErrorException
SNS.Client.exceptions.ConcurrentAccessException