Skip to main content

tags

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

Overview

Nametags
TypeResource
Idaws.snow_device_management.tags

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
tagsobjectThe list of tags for the device or task.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_tags_for_resourceselectresource_arn, regionReturns a list of tags for a managed device or task.
tag_resourceupdateresource_arn, region, tagsAdds or replaces tags on a device or task.
untag_resourceupdateresource_arn, tagKeys, regionRemoves a tag from a device or task.

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) of the device or task.
tagKeysarrayOptional metadata that you assign to a resource. You can use tags to categorize a resource in different ways, such as by purpose, owner, or environment.

SELECT examples

Returns a list of tags for a managed device or task.

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

UPDATE examples

Adds or replaces tags on a device or task.

UPDATE aws.snow_device_management.tags
SET
tags = '{{ tags }}'
WHERE
resource_arn = '{{ resource_arn }}' --required
AND region = '{{ region }}' --required
AND tags = '{{ tags }}' --required;