Skip to main content

tags

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

Overview

Nametags
TypeResource
Idaws.dataexchange.tags

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
tagsobjectA label that consists of a customer-defined key and an optional value.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_tags_for_resourceselectresource_arn, regionThis operation lists the tags on the resource.
untag_resourceupdateresource_arn, tagKeys, regionThis operation removes one or more tags from a resource.
tag_resourceupdateresource_arn, regionThis operation tags 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)
resource_arnstringAn Amazon Resource Name (ARN) that uniquely identifies an AWS resource.
tagKeysarrayThe key tags.

SELECT examples

This operation lists the tags on the resource.

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

UPDATE examples

This operation removes one or more tags from a resource.

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