imagebuilder / Client / list_tags_for_resource

list_tags_for_resource#

imagebuilder.Client.list_tags_for_resource(**kwargs)#

Returns the list of tags for the specified 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 whose tags you want to retrieve.

Return type:

dict

Returns:

Response Syntax

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

Response Structure

  • (dict) –

    • tags (dict) –

      The tags for the specified resource.

      • (string) –

        • (string) –

Exceptions

  • imagebuilder.Client.exceptions.ServiceException

  • imagebuilder.Client.exceptions.InvalidParameterException

  • imagebuilder.Client.exceptions.ResourceNotFoundException