Skip to main content

tags

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

Overview

Nametags
TypeResource
Idaws.braket.tags

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
tagsobjectDisplays the key, value pairs of tags associated with this resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_tags_for_resourceselectresource_arn, regionShows the tags associated with this resource.
tag_resourceupdateresource_arn, region, tagsAdd a tag to the specified resource.
untag_resourceupdateresource_arn, tagKeys, regionRemove tags from 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_arnstringSpecify the resourceArn for the resource from which to remove the tags.
tagKeysarraySpecify the keys for the tags to remove from the resource.

SELECT examples

Shows the tags associated with this resource.

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

UPDATE examples

Add a tag to the specified resource.

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