Skip to main content

tags

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

Overview

Nametags
TypeResource
Idaws.directconnect.tags

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
resource_tagsarrayInformation about the tags.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_tagsselectregionDescribes the tags associated with the specified Direct Connect resources.
tag_resourceupdateregion, resourceArn, tagsAdds 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.
untag_resourceupdateregion, resourceArn, tagKeysRemoves one or more tags from the specified Direct Connect resource.

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

Describes the tags associated with the specified Direct Connect resources.

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

UPDATE examples

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.

UPDATE aws.directconnect.tags
SET
resourceArn = '{{ resourceArn }}',
tags = '{{ tags }}'
WHERE
region = '{{ region }}' --required
AND resourceArn = '{{ resourceArn }}' --required
AND tags = '{{ tags }}' --required;