Skip to main content

tags

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

Overview

Nametags
TypeResource
Idaws.marketplace_deployment.tags

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
tagsobjectA map of key-value pairs, where each pair represents a tag present on the resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_tags_for_resourceselectresource_arn, regionLists all tags that have been added to a deployment parameter resource.
untag_resourceupdateresource_arn, tagKeys, regionRemoves a tag or list of tags from a resource.
tag_resourceupdateresource_arn, regionTags a resource.

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) associated with the resource you want to tag.
tagKeysarrayA list of key names of tags to be removed.

SELECT examples

Lists all tags that have been added to a deployment parameter resource.

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

UPDATE examples

Removes a tag or list of tags from a resource.

UPDATE aws.marketplace_deployment.tags
SET
-- No updatable properties
WHERE
resource_arn = '{{ resource_arn }}' --required
AND tagKeys = '{{ tagKeys }}' --required
AND region = '{{ region }}' --required;