Skip to main content

tags

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

Overview

Nametags
TypeResource
Idaws.rbin.tags

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
tagsarrayInformation about the tags assigned to the retention rule.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_tags_for_resourceselectresource_arn, regionLists the tags assigned to a retention rule.
untag_resourceupdateresource_arn, tagKeys, regionUnassigns a tag from a retention rule.
tag_resourceupdateresource_arn, regionAssigns tags to the specified retention rule.

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 retention rule.
tagKeysarrayThe tag keys of the tags to unassign. All tags that have the specified tag key are unassigned.

SELECT examples

Lists the tags assigned to a retention rule.

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

UPDATE examples

Unassigns a tag from a retention rule.

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