Skip to main content

tags

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

Overview

Nametags
TypeResource
Idaws.bedrock.tags

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
tagsarrayAn array of the tags associated with this resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_tags_for_resourceselectregionList the tags associated with the specified resource. For more information, see Tagging resources in the Amazon Bedrock User Guide.
tag_resourceupdateregion, resourceARN, tagsAssociate tags with a resource. For more information, see Tagging resources in the Amazon Bedrock User Guide.
untag_resourceupdateregion, resourceARN, tagKeysRemove one or more tags from a resource. For more information, see Tagging resources in the Amazon Bedrock User Guide.

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

List the tags associated with the specified resource. For more information, see Tagging resources in the Amazon Bedrock User Guide.

SELECT
tags
FROM aws.bedrock.tags
WHERE region = '{{ region }}' -- required
;

UPDATE examples

Associate tags with a resource. For more information, see Tagging resources in the Amazon Bedrock User Guide.

UPDATE aws.bedrock.tags
SET
resourceARN = '{{ resourceARN }}',
tags = '{{ tags }}'
WHERE
region = '{{ region }}' --required
AND resourceARN = '{{ resourceARN }}' --required
AND tags = '{{ tags }}' --required;