Skip to main content

tags

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

Overview

Nametags
TypeResource
Idaws.ivschat.tags

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
tagsobjectTags attached to the resource. Array of maps, each of the form string:string (key:value).

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_tags_for_resourceselectresource_arn, regionGets information about AWS tags for the specified ARN.
tag_resourceupdateresource_arn, region, tagsAdds or updates tags for the AWS resource with the specified ARN.
untag_resourceupdateresource_arn, tagKeys, regionRemoves tags from the resource with the specified ARN.

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 ARN of the resource to be untagged. The ARN must be URL-encoded.
tagKeysarrayArray of tags to be removed. Array of maps, each of the form string:string (key:value). See Best practices and strategies in Tagging Amazon Web Services Resources and Tag Editor for details, including restrictions that apply to tags and "Tag naming limits and requirements"; Amazon IVS Chat has no constraints beyond what is documented there.

SELECT examples

Gets information about AWS tags for the specified ARN.

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

UPDATE examples

Adds or updates tags for the AWS resource with the specified ARN.

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