tags
Creates, updates, deletes, gets or lists a tags resource.
Overview
| Name | tags |
| Type | Resource |
| Id | aws.bedrock_agent.tags |
Fields
The following fields are returned by SELECT queries:
- list_tags_for_resource
| Name | Datatype | Description |
|---|---|---|
tags | object | The key-value pairs for the tags associated with the resource. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list_tags_for_resource | select | resource_arn, region | List all the tags for the resource you specify. | |
tag_resource | update | resource_arn, region, tags | Associate tags with a resource. For more information, see Tagging resources in the Amazon Bedrock User Guide. | |
untag_resource | update | resource_arn, tagKeys, region | Remove 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.
| Name | Datatype | Description |
|---|---|---|
region | string | AWS region (default: us-east-1) |
resource_arn | string | The Amazon Resource Name (ARN) of the resource from which to remove tags. |
tagKeys | array | A list of keys of the tags to remove from the resource. |
SELECT examples
- list_tags_for_resource
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
- tag_resource
- untag_resource
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;
Remove tags from a resource.
UPDATE aws.bedrock_agent.tags
SET
-- No updatable properties
WHERE
resource_arn = '{{ resource_arn }}' --required
AND tagKeys = '{{ tagKeys }}' --required
AND region = '{{ region }}' --required;