Skip to main content

tags

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

Overview

Nametags
TypeResource
Idaws.arc_region_switch.tags

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
resource_tagsobjectThe tags for a resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_tags_for_resourceselectregionLists the tags attached to a Region switch resource.
tag_resourceupdateregion, arn, tagsAdds or updates tags for a Region switch resource. You can assign metadata to your resources in the form of tags, which are key-value pairs.
untag_resourceupdateregion, arn, resourceTagKeysRemoves tags from a Region switch 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)

SELECT examples

Lists the tags attached to a Region switch resource.

SELECT
resource_tags
FROM aws.arc_region_switch.tags
WHERE region = '{{ region }}' -- required
;

UPDATE examples

Adds or updates tags for a Region switch resource. You can assign metadata to your resources in the form of tags, which are key-value pairs.

UPDATE aws.arc_region_switch.tags
SET
arn = '{{ arn }}',
tags = '{{ tags }}'
WHERE
region = '{{ region }}' --required
AND arn = '{{ arn }}' --required
AND tags = '{{ tags }}' --required;