drs / Client / list_tags_for_resource

list_tags_for_resource#

drs.Client.list_tags_for_resource(**kwargs)#

List all tags for your Elastic Disaster Recovery resources.

See also: AWS API Documentation

Request Syntax

response = client.list_tags_for_resource(
    resourceArn='string'
)
Parameters:

resourceArn (string) –

[REQUIRED]

The ARN of the resource whose tags should be returned.

Return type:

dict

Returns:

Response Syntax

{
    'tags': {
        'string': 'string'
    }
}

Response Structure

  • (dict) –

    • tags (dict) –

      The tags of the requested resource.

      • (string) –

        • (string) –

Exceptions

  • drs.Client.exceptions.ResourceNotFoundException

  • drs.Client.exceptions.InternalServerException

  • drs.Client.exceptions.ThrottlingException

  • drs.Client.exceptions.AccessDeniedException

  • drs.Client.exceptions.ValidationException