SystemsManagerQuickSetup / Client / list_tags_for_resource

list_tags_for_resource#

SystemsManagerQuickSetup.Client.list_tags_for_resource(**kwargs)#

Returns 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 ARN of the resource the tag is assigned to.

Return type:

dict

Returns:

Response Syntax

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

Response Structure

  • (dict) –

    • Tags (list) –

      Key-value pairs of metadata assigned to the resource.

      • (dict) –

        Key-value pairs of metadata.

        • Key (string) –

          The key for the tag.

        • Value (string) –

          The value for the tag.

Exceptions

  • SystemsManagerQuickSetup.Client.exceptions.ValidationException

  • SystemsManagerQuickSetup.Client.exceptions.ConflictException

  • SystemsManagerQuickSetup.Client.exceptions.InternalServerException

  • SystemsManagerQuickSetup.Client.exceptions.AccessDeniedException

  • SystemsManagerQuickSetup.Client.exceptions.ThrottlingException

  • SystemsManagerQuickSetup.Client.exceptions.ResourceNotFoundException