MarketplaceCatalog / Client / list_tags_for_resource

list_tags_for_resource#

MarketplaceCatalog.Client.list_tags_for_resource(**kwargs)#

Lists all tags that have been added to a resource (either an entity or change set).

See also: AWS API Documentation

Request Syntax

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

ResourceArn (string) –

[REQUIRED]

Required. The Amazon Resource Name (ARN) associated with the resource you want to list tags on.

Return type:

dict

Returns:

Response Syntax

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

Response Structure

  • (dict) –

    • ResourceArn (string) –

      Required. The ARN associated with the resource you want to list tags on.

    • Tags (list) –

      Required. A list of objects specifying each key name and value. Number of objects allowed: 1-50.

      • (dict) –

        A list of objects specifying each key name and value.

        • Key (string) –

          The key associated with the tag.

        • Value (string) –

          The value associated with the tag.

Exceptions