Skip to main content

tags

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

Overview​

Nametags
TypeResource
Idaws.proton.tags

Fields​

The following fields are returned by SELECT queries:

NameDatatypeDescription
keystringThe key of the resource tag.
valuestringThe value of the resource tag.

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_tags_for_resourceselectregionList tags for a resource. For more information, see Proton resources and tagging in the Proton User Guide.
tag_resourceupdateregion, resourceArn, tagsTag a resource. A tag is a key-value pair of metadata that you associate with an Proton resource. For more information, see Proton resources and tagging in the Proton User Guide.
untag_resourceupdateregion, resourceArn, tagKeysRemove a customer tag from a resource. A tag is a key-value pair of metadata associated with an Proton resource. For more information, see Proton resources and tagging in the Proton User 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 tags for a resource. For more information, see Proton resources and tagging in the Proton User Guide.

SELECT
key,
value
FROM aws.proton.tags
WHERE region = '{{ region }}' -- required
;

UPDATE examples​

Tag a resource. A tag is a key-value pair of metadata that you associate with an Proton resource. For more information, see Proton resources and tagging in the Proton User Guide.

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