Skip to main content

tags

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

Overview

Nametags
TypeResource
Idaws.mediapackage_vod.tags

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
tagsobjectA collection of tags associated with a resource

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_tags_for_resourceselectresource-arn, regionReturns a list of the tags assigned to the specified resource.
untag_resourceupdateresource-arn, tagKeys, regionRemoves tags from the specified resource. You can specify one or more tags to remove.
tag_resourceupdateresource-arn, regionAdds tags to the specified resource. You can specify one or more tags to add.

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 Amazon Resource Name (ARN) for the resource. You can get this from the response to any request to the resource.
tagKeysarrayA comma-separated list of the tag keys to remove from the resource.

SELECT examples

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

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

UPDATE examples

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

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