Skip to main content

tags

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

Overview

Nametags
TypeResource
Idaws.ivs.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 Amazon Web Services tags for the specified ARN.
tag_resourceupdateresource_arn, region, tagsAdds or updates tags for the Amazon Web Services 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_arnstringARN of the resource for which tags are to be removed. The ARN must be URL-encoded.
tagKeysarrayArray of tag keys (strings) for the tags to be removed. 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 has no service-specific constraints beyond what is documented there.

SELECT examples

Gets information about Amazon Web Services tags for the specified ARN.

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

UPDATE examples

Adds or updates tags for the Amazon Web Services resource with the specified ARN.

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