Skip to main content

tags

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

Overview

Nametags
TypeResource
Idaws.migrationhuborchestrator.tags

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
tagsobjectThe tags added to a resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_tags_for_resourceselectresource_arn, regionList the tags added to a resource.
tag_resourceupdateresource_arn, region, tagsTag a resource by specifying its Amazon Resource Name (ARN).
untag_resourceupdateresource_arn, tagKeys, regionDeletes the tags for 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_arnstringThe Amazon Resource Name (ARN) of the resource from which you want to remove tags.
tagKeysarrayOne or more tag keys. Specify only the tag keys, not the tag values.

SELECT examples

List the tags added to a resource.

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

UPDATE examples

Tag a resource by specifying its Amazon Resource Name (ARN).

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