tag_resource

GlobalAccelerator.Client.tag_resource(**kwargs)

Add tags to an accelerator resource.

For more information, see Tagging in Global Accelerator in the Global Accelerator Developer Guide .

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 Global Accelerator resource to add tags to. An ARN uniquely identifies a resource.

  • Tags (list) --

    [REQUIRED]

    The tags to add to a resource. A tag consists of a key and a value that you define.

    • (dict) --

      A complex type that contains a Tag key and Tag value.

      • Key (string) -- [REQUIRED]

        A string that contains a Tag key.

      • Value (string) -- [REQUIRED]

        A string that contains a Tag value.

Return type

dict

Returns

Response Syntax

{}

Response Structure

  • (dict) --

Exceptions

  • GlobalAccelerator.Client.exceptions.AcceleratorNotFoundException
  • GlobalAccelerator.Client.exceptions.InternalServiceErrorException
  • GlobalAccelerator.Client.exceptions.InvalidArgumentException