Skip to main content

tags

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

Overview

Nametags
TypeResource
Idaws.route53profiles.tags

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
tagsobjectThe tags that are associated with the resource that you specified in the ListTagsForResource request.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_tags_for_resourceselectresource_arn, regionLists the tags that you associated with the specified resource.
untag_resourceupdateresource_arn, tagKeys, regionRemoves one or more tags from a specified resource.
tag_resourceupdateresource_arn, regionAdds one or more tags to 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)
resource_arnstringThe Amazon Resource Name (ARN) for the resource that you want to add tags to.
tagKeysarrayThe tags that you want to remove to the specified resource.

SELECT examples

Lists the tags that you associated with the specified resource.

SELECT
tags
FROM aws.route53profiles.tags
WHERE resource_arn = '{{ resource_arn }}' -- required
AND region = '{{ region }}' -- required
;

UPDATE examples

Removes one or more tags from a specified resource.

UPDATE aws.route53profiles.tags
SET
-- No updatable properties
WHERE
resource_arn = '{{ resource_arn }}' --required
AND tagKeys = '{{ tagKeys }}' --required
AND region = '{{ region }}' --required;