Skip to main content

tags

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

Overview

Nametags
TypeResource
Idaws.elementalinference.tags

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
tagsobjectA list of the tags that belong to this resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_tags_for_resourceselectresource_arn, regionList all tags that are on an Elemental Inference resource in the current region.
tag_resourceupdateresource_arn, region, tagsAssociates the specified tags to the resource identified by the specified resourceArn in the current region. If existing tags on a resource are not specified in the request parameters, they are not changed. When a resource is deleted, the tags associated with that resource are also deleted.
untag_resourceupdateresource_arn, tagKeys, regionDeletes specified tags from the specified resource in the current region.

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 where you want to delete one or more tags.
tagKeysarrayThe keys of the tags to delete.

SELECT examples

List all tags that are on an Elemental Inference resource in the current region.

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

UPDATE examples

Associates the specified tags to the resource identified by the specified resourceArn in the current region. If existing tags on a resource are not specified in the request parameters, they are not changed. When a resource is deleted, the tags associated with that resource are also deleted.

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