Skip to main content

tags

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

Overview

Nametags
TypeResource
Idaws.personalize.tags

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
tagsarrayThe resource's tags.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_tags_for_resourceselectregionGet a list of tags attached to a resource.
tag_resourceupdateregion, resourceArn, tagsAdd a list of tags to a resource.
untag_resourceupdateregion, resourceArn, tagKeysRemoves the specified tags that are attached to a resource. For more information, see Removing tags from Amazon Personalize resources.

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)

SELECT examples

Get a list of tags attached to a resource.

SELECT
tags
FROM aws.personalize.tags
WHERE region = '{{ region }}' -- required
;

UPDATE examples

Add a list of tags to a resource.

UPDATE aws.personalize.tags
SET
resourceArn = '{{ resourceArn }}',
tags = '{{ tags }}'
WHERE
region = '{{ region }}' --required
AND resourceArn = '{{ resourceArn }}' --required
AND tags = '{{ tags }}' --required;