AppConfig / Client / list_tags_for_resource

list_tags_for_resource#

AppConfig.Client.list_tags_for_resource(**kwargs)#

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'
)
Parameters:

ResourceArn (string) –

[REQUIRED]

The resource ARN.

Return type:

dict

Returns:

Response Syntax

{
    'Tags': {
        'string': 'string'
    }
}

Response Structure

  • (dict) –

    • Tags (dict) –

      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.

      • (string) –

        • (string) –

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': {
        '...': '...',
    },
}