Skip to main content

tags

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

Overview

Nametags
TypeResource
Idaws.codeconnections.tags

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
tagsarrayA list of tag key and value pairs associated with the specified resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_tags_for_resourceselectregionGets the set of key-value pairs (metadata) that are used to manage the resource.
untag_resourceupdateregion, ResourceArn, TagKeysRemoves tags from an Amazon Web Services resource.
tag_resourceupdateregion, ResourceArnAdds to or modifies the tags of the given resource. Tags are metadata that can be used to manage a 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

Gets the set of key-value pairs (metadata) that are used to manage the resource.

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

UPDATE examples

Removes tags from an Amazon Web Services resource.

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