Skip to main content

tags

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

Overview

Nametags
TypeResource
Idaws.deadline.tags

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
tagsobjectEach tag consists of a tag key and a tag value. Tag keys and values are both required, but tag values can be empty strings.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_tags_for_resourceselectresource_arn, regionLists tags for a resource.
untag_resourceupdateresource_arn, tagKeys, regionRemoves a tag from a resource using the resource's ARN and tag to remove.
tag_resourceupdateresource_arn, regionTags a resource using the resource's ARN and desired tags.

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 apply tags to.
tagKeysarrayThey keys of the tag.

SELECT examples

Lists tags for a resource.

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

UPDATE examples

Removes a tag from a resource using the resource's ARN and tag to remove.

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