Skip to main content

tags

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

Overview

Nametags
TypeResource
Idaws.mediastore.tags

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
tagsarrayAn array of key:value pairs that are assigned to the container.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_tags_for_resourceselectregionReturns a list of the tags assigned to the specified container.
untag_resourceupdateregion, Resource, TagKeysRemoves tags from the specified container. You can specify one or more tags to remove.
tag_resourceupdateregion, ResourceAdds tags to the specified AWS Elemental MediaStore container. Tags are key:value pairs that you can associate with AWS resources. For example, the tag key might be "customer" and the tag value might be "companyA." You can specify one or more tags to add to each container. You can add up to 50 tags to each container. For more information about tagging, including naming and usage conventions, see Tagging Resources in MediaStore.

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)

SELECT examples

Returns a list of the tags assigned to the specified container.

SELECT
tags
FROM aws.mediastore.tags
WHERE region = '{{ region }}' -- required
;

UPDATE examples

Removes tags from the specified container. You can specify one or more tags to remove.

UPDATE aws.mediastore.tags
SET
Resource = '{{ Resource }}',
TagKeys = '{{ TagKeys }}'
WHERE
region = '{{ region }}' --required
AND Resource = '{{ Resource }}' --required
AND TagKeys = '{{ TagKeys }}' --required;