SSMContacts / Client / list_tags_for_resource
list_tags_for_resource#
- SSMContacts.Client.list_tags_for_resource(**kwargs)#
Lists the tags of an escalation plan or contact.
See also: AWS API Documentation
Request Syntax
response = client.list_tags_for_resource( ResourceARN='string' )
- Parameters:
ResourceARN (string) –
[REQUIRED]
The Amazon Resource Name (ARN) of the contact or escalation plan.
- Return type:
dict
- Returns:
Response Syntax
{ 'Tags': [ { 'Key': 'string', 'Value': 'string' }, ] }
Response Structure
(dict) –
Tags (list) –
The tags related to the contact or escalation plan.
(dict) –
A container of a key-value name pair.
Key (string) –
Name of the object key.
Value (string) –
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': { '...': '...', }, }