Skip to main content

tags

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

Overview

Nametags
TypeResource
Idaws.appfabric.tags

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
tagsarrayA map of the key-value pairs for the tag or tags assigned to the specified resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_tags_for_resourceselectresource_arn, regionReturns a list of tags for a resource.
tag_resourceupdateresource_arn, region, tagsAssigns one or more tags (key-value pairs) to the specified resource.
untag_resourceupdateresource_arn, tagKeys, regionRemoves a tag or 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_arnstringThe Amazon Resource Name (ARN) of the resource that you want to untag.
tagKeysarrayThe keys of the key-value pairs for the tag or tags you want to remove from the specified resource.

SELECT examples

Returns a list of tags for a resource.

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

UPDATE examples

Assigns one or more tags (key-value pairs) to the specified resource.

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