Skip to main content

tags

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

Overview

Nametags
TypeResource
Idaws.kafkaconnect.tags

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
tagsobjectLists the tags attached to the specified resource in the corresponding request.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_tags_for_resourceselectresource_arn, regionLists all the tags attached to the specified resource.
tag_resourceupdateresource_arn, region, tagsAttaches tags to the specified resource.
untag_resourceupdateresource_arn, tagKeys, regionRemoves tags from the specified resource.

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 from which you want to remove tags.
tagKeysarrayThe keys of the tags that you want to remove from the resource.

SELECT examples

Lists all the tags attached to the specified resource.

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

UPDATE examples

Attaches tags to the specified resource.

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