MailManager / Client / list_tags_for_resource

list_tags_for_resource#

MailManager.Client.list_tags_for_resource(**kwargs)#

Retrieves the list of tags (keys and values) assigned to the resource.

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 resource to retrieve tags from.

Return type:

dict

Returns:

Response Syntax

{
    'Tags': [
        {
            'Key': 'string',
            'Value': 'string'
        },
    ]
}

Response Structure

  • (dict) –

    • Tags (list) –

      The tags used to organize, track, or control access for the resource. For example, { “tags”: {“key1”:”value1”, “key2”:”value2”} }.

      • (dict) –

        A key-value pair (the value is optional), that you can define and assign to Amazon Web Services resources.

        • Key (string) –

          The key of the key-value tag.

        • Value (string) –

          The value of the key-value tag.

Exceptions

  • MailManager.Client.exceptions.ValidationException

  • MailManager.Client.exceptions.ResourceNotFoundException