Skip to main content

tags

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

Overview

Nametags
TypeResource
Idaws.ivs_realtime.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 tag keys (strings) for the tags to be removed. See Best practices and strategies in Tagging AWS Resources and Tag Editor for details, including restrictions that apply to tags and "Tag naming limits and requirements"; Amazon IVS has no constraints on tags beyond what is documented there.

SELECT examples

Gets information about AWS tags for the specified ARN.

SELECT
tags
FROM aws.ivs_realtime.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.ivs_realtime.tags
SET
tags = '{{ tags }}'
WHERE
resource_arn = '{{ resource_arn }}' --required
AND region = '{{ region }}' --required
AND tags = '{{ tags }}' --required;