Skip to main content

tags

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

Overview

Nametags
TypeResource
Idaws.databrew.tags

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
tagsobjectA list of tags associated with the DataBrew resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_tags_for_resourceselectresource_arn, regionLists all the tags for a DataBrew resource.
untag_resourceupdateresource_arn, tagKeys, regionRemoves metadata tags from a DataBrew resource.
tag_resourceupdateresource_arn, regionAdds metadata tags to a DataBrew resource, such as a dataset, project, recipe, job, or schedule.

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 DataBrew resource to which tags should be added. The value for this parameter is an Amazon Resource Name (ARN). For DataBrew, you can tag a dataset, a job, a project, or a recipe.
tagKeysarrayThe tag keys (names) of one or more tags to be removed.

SELECT examples

Lists all the tags for a DataBrew resource.

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

UPDATE examples

Removes metadata tags from a DataBrew resource.

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