DirectConnect / Client / tag_resource

tag_resource#

DirectConnect.Client.tag_resource(**kwargs)#

Adds the specified tags to the specified Direct Connect resource. Each resource can have a maximum of 50 tags.

Each tag consists of a key and an optional value. If a tag with the same key is already associated with the resource, this action updates its value.

See also: AWS API Documentation

Request Syntax

response = client.tag_resource(
    resourceArn='string',
    tags=[
        {
            'key': 'string',
            'value': 'string'
        },
    ]
)
Parameters:
  • resourceArn (string) –

    [REQUIRED]

    The Amazon Resource Name (ARN) of the resource.

  • tags (list) –

    [REQUIRED]

    The tags to add.

    • (dict) –

      Information about a tag.

      • key (string) – [REQUIRED]

        The key.

      • value (string) –

        The value.

Return type:

dict

Returns:

Response Syntax

{}

Response Structure

  • (dict) –

Exceptions

  • DirectConnect.Client.exceptions.DuplicateTagKeysException

  • DirectConnect.Client.exceptions.TooManyTagsException

  • DirectConnect.Client.exceptions.DirectConnectServerException

  • DirectConnect.Client.exceptions.DirectConnectClientException