Skip to main content

tags

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

Overview

Nametags
TypeResource
Idaws.bedrock_agent.tags

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
tagsobjectThe key-value pairs for the tags associated with the resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_tags_for_resourceselectresource_arn, regionList all the tags for the resource you specify.
tag_resourceupdateresource_arn, region, tagsAssociate tags with a resource. For more information, see Tagging resources in the Amazon Bedrock User Guide.
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_arnstringThe Amazon Resource Name (ARN) of the resource from which to remove tags.
tagKeysarrayA list of keys of the tags to remove from the resource.

SELECT examples

List all the tags for the resource you specify.

SELECT
tags
FROM aws.bedrock_agent.tags
WHERE resource_arn = '{{ resource_arn }}' -- required
AND 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_agent.tags
SET
tags = '{{ tags }}'
WHERE
resource_arn = '{{ resource_arn }}' --required
AND region = '{{ region }}' --required
AND tags = '{{ tags }}' --required;