Skip to main content

tags

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

Overview

Nametags
TypeResource
Idaws.apigatewayv2.tags

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
tagsobject

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_tagsselectresource-arn, regionGets a collection of Tag resources.
untag_resourceupdateresource-arn, tagKeys, regionDeletes a Tag.
tag_resourceupdateresource-arn, regionCreates a new Tag resource to represent a tag.

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 resource ARN for the tag.
tagKeysarrayThe Tag keys to delete

SELECT examples

Gets a collection of Tag resources.

SELECT
tags
FROM aws.apigatewayv2.tags
WHERE `resource-arn` = '{{ resource-arn }}' -- required
AND region = '{{ region }}' -- required
;

UPDATE examples

Deletes a Tag.

UPDATE aws.apigatewayv2.tags
SET
-- No updatable properties
WHERE
`resource-arn` = '{{ resource-arn }}' --required
AND tagKeys = '{{ tagKeys }}' --required
AND region = '{{ region }}' --required;