Skip to main content

tags

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

Overview

Nametags
TypeResource
Idaws.sagemaker_geospatial.tags

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
tagsobjectEach tag consists of a key and a value.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_tags_for_resourceselectresource_arn, regionLists the tags attached to the resource.
untag_resourceupdateresource_arn, tagKeys, regionThe resource you want to untag.
tag_resourceupdateresource_arn, regionThe resource you want to tag.

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) of the resource you want to tag.
tagKeysarrayKeys of the tags you want to remove.

SELECT examples

Lists the tags attached to the resource.

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

UPDATE examples

The resource you want to untag.

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