Skip to main content

tags

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

Overview​

Nametags
TypeResource
Idaws.qapps.tags

Fields​

The following fields are returned by SELECT queries:

NameDatatypeDescription
tagsobjectThe list of tags that are assigned to the resource.

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_tags_for_resourceselectresource_arn, regionLists the tags associated with an Amazon Q Apps resource.
tag_resourceupdateresource_arn, region, tagsAssociates tags with an Amazon Q Apps resource.
untag_resourceupdateresource_arn, tagKeys, regionDisassociates tags from an Amazon Q Apps 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 to disassociate the tag from.
tagKeysarrayThe keys of the tags to disassociate from the resource.

SELECT examples​

Lists the tags associated with an Amazon Q Apps resource.

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

UPDATE examples​

Associates tags with an Amazon Q Apps resource.

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