Skip to main content

tags

Creates, updates, deletes, gets or lists a tags resource.

Overview

Nametags
TypeResource
Idaws.globalaccelerator.tags

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
tagsarrayRoot level tag for the Tags parameters.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_tags_for_resourceselectregionList all tags for an accelerator. For more information, see Tagging in Global Accelerator in the Global Accelerator Developer Guide.
untag_resourceupdateregion, ResourceArn, TagKeysRemove tags from a Global Accelerator resource. When you specify a tag key, the action removes both that key and its associated value. The operation succeeds even if you attempt to remove tags from an accelerator that was already removed. For more information, see Tagging in Global Accelerator in the Global Accelerator Developer Guide.
tag_resourceupdateregion, ResourceArnAdd tags to an accelerator resource. For more information, see Tagging in Global Accelerator in the Global Accelerator Developer Guide.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)

SELECT examples

List all tags for an accelerator. For more information, see Tagging in Global Accelerator in the Global Accelerator Developer Guide.

SELECT
tags
FROM aws.globalaccelerator.tags
WHERE region = '{{ region }}' -- required
;

UPDATE examples

Remove tags from a Global Accelerator resource. When you specify a tag key, the action removes both that key and its associated value. The operation succeeds even if you attempt to remove tags from an accelerator that was already removed. For more information, see Tagging in Global Accelerator in the Global Accelerator Developer Guide.

UPDATE aws.globalaccelerator.tags
SET
ResourceArn = '{{ ResourceArn }}',
TagKeys = '{{ TagKeys }}'
WHERE
region = '{{ region }}' --required
AND ResourceArn = '{{ ResourceArn }}' --required
AND TagKeys = '{{ TagKeys }}' --required;