Skip to main content

tags

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

Overview​

Nametags
TypeResource
Idaws.account_access.tags

Fields​

The following fields are returned by SELECT queries:

NameDatatypeDescription
tagsobjectThe tags associated with 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 account access manager resource.
tag_resourceupdateresource_arn, region, tagsAdds tags to an account access manager resource.
untag_resourceupdateresource_arn, tagKeys, regionRemoves tags from an account access manager 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_arnstringSpecifies the ARN of the resource to remove tags from.
tagKeysarraySpecifies the tag keys to remove from the resource.

SELECT examples​

Lists the tags associated with an account access manager resource.

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

UPDATE examples​

Adds tags to an account access manager resource.

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