Skip to main content

tags

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

Overview​

Nametags
TypeResource
Idaws.route53resolver.tags

Fields​

The following fields are returned by SELECT queries:

NameDatatypeDescription
keystringThe name for the tag. For example, if you want to associate Resolver resources with the account IDs of your customers for billing purposes, the value of Key might be account-id.
valuestringThe value for the tag. For example, if Key is account-id, then Value might be the ID of the customer account that you're creating the resource for.

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_tags_for_resourceselectregionLists the tags that you associated with the specified resource.
tag_resourceupdateregion, ResourceArn, TagsAdds one or more tags to a specified resource.
untag_resourceupdateregion, ResourceArn, TagKeysRemoves one or more tags from a specified 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​

Lists the tags that you associated with the specified resource.

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

UPDATE examples​

Adds one or more tags to a specified resource.

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