Retrieves the list of key-value tags assigned to the resource.
See also: AWS API Documentation
Request Syntax
response = client.list_tags_for_resource(
ResourceArn='string'
)
[REQUIRED]
The resource ARN.
{
'Tags': {
'string': 'string'
}
}
Response Structure
Metadata to assign to AppConfig resources. Tags help organize and categorize your AppConfig resources. Each tag consists of a key and an optional value, both of which you define.
Exceptions
AppConfig.Client.exceptions.ResourceNotFoundException
AppConfig.Client.exceptions.BadRequestException
AppConfig.Client.exceptions.InternalServerException
Examples
The following list-tags-for-resource example lists the tags of a specified application.
response = client.list_tags_for_resource(
ResourceArn='arn:aws:appconfig:us-east-1:111122223333:application/339ohji',
)
print(response)
Expected Output:
{
'Tags': {
'group1': '1',
},
'ResponseMetadata': {
'...': '...',
},
}