Skip to main content

tags

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

Overview

Nametags
TypeResource
Idaws.backupsearch.tags

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
tagsobjectList of tags returned by the operation.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_tags_for_resourceselectresource_arn, regionThis operation returns the tags for a resource type.
untag_resourceupdateresource_arn, tagKeys, regionThis operation removes tags from the specified resource.
tag_resourceupdateresource_arn, regionThis operation puts tags on the resource you indicate.

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) that uniquely identifies the resource. This is the resource that will have the indicated tags.
tagKeysarrayThis required parameter contains the tag keys you want to remove from the source.

SELECT examples

This operation returns the tags for a resource type.

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

UPDATE examples

This operation removes tags from the specified resource.

UPDATE aws.backupsearch.tags
SET
-- No updatable properties
WHERE
resource_arn = '{{ resource_arn }}' --required
AND tagKeys = '{{ tagKeys }}' --required
AND region = '{{ region }}' --required;