MarketplaceCatalog / Client / tag_resource

tag_resource#

MarketplaceCatalog.Client.tag_resource(**kwargs)#

Tags a resource (either an entity or change set).

See also: AWS API Documentation

Request Syntax

response = client.tag_resource(
    ResourceArn='string',
    Tags=[
        {
            'Key': 'string',
            'Value': 'string'
        },
    ]
)
Parameters:
  • ResourceArn (string) –

    [REQUIRED]

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

  • Tags (list) –

    [REQUIRED]

    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) – [REQUIRED]

        The key associated with the tag.

      • Value (string) – [REQUIRED]

        The value associated with the tag.

Return type:

dict

Returns:

Response Syntax

{}

Response Structure

  • (dict) –

Exceptions