Skip to main content

tags

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

Overview

Nametags
TypeResource
Idaws.resiliencehub.tags

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
tagsobjectTags assigned to the resource. A tag is a label that you assign to an Amazon Web Services resource. Each tag consists of a key/value pair.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_tags_for_resourceselectresource_arn, regionLists the tags for your resources in your Resilience Hub applications.
tag_resourceupdateresource_arn, region, tagsApplies one or more tags to a resource.
untag_resourceupdateresource_arn, tagKeys, regionRemoves one or more tags from a 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_arnstringAmazon Resource Name (ARN) of the resource.
tagKeysarrayThe keys of the tags you want to remove.

SELECT examples

Lists the tags for your resources in your Resilience Hub applications.

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

UPDATE examples

Applies one or more tags to a resource.

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