Lists the tags of an escalation plan or contact.
See also: AWS API Documentation
Request Syntax
response = client.list_tags_for_resource(
ResourceARN='string'
)
[REQUIRED]
The Amazon Resource Name (ARN) of the contact or escalation plan.
{
'Tags': [
{
'Key': 'string',
'Value': 'string'
},
]
}
Response Structure
The tags related to the contact or escalation plan.
A container of a key-value name pair.
Name of the object key.
Value of the tag.
Exceptions
SSMContacts.Client.exceptions.AccessDeniedException
SSMContacts.Client.exceptions.ThrottlingException
SSMContacts.Client.exceptions.ResourceNotFoundException
SSMContacts.Client.exceptions.ValidationException
SSMContacts.Client.exceptions.InternalServerException
Examples
The following list-tags-for-resource example lists the tags of the specified contact.
response = client.list_tags_for_resource(
ResourceARN='arn:aws:ssm-contacts:us-east-1:111122223333:contact/akuam',
)
print(response)
Expected Output:
{
'Tags': [
{
'Key': 'group1',
'Value': '1',
},
],
'ResponseMetadata': {
'...': '...',
},
}