Skip to main content

tags

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

Overview

Nametags
TypeResource
Idaws.auditmanager.tags

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
tagsobjectThe list of tags that the ListTagsForResource API returned.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_tags_for_resourceselectresource_arn, regionReturns a list of tags for the specified resource in Audit Manager.
tag_resourceupdateresource_arn, region, tagsTags the specified resource in Audit Manager.
untag_resourceupdateresource_arn, tagKeys, regionRemoves a tag from a resource in Audit Manager.

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 specified resource.
tagKeysarrayThe name or key of the tag.

SELECT examples

Returns a list of tags for the specified resource in Audit Manager.

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

UPDATE examples

Tags the specified resource in Audit Manager.

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