Skip to main content

tags

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

Overview

Nametags
TypeResource
Idaws.kinesis.tags

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
tagsarrayAn array of tags associated with the specified Kinesis resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_tags_for_resourceselectregionList all tags added to the specified Kinesis resource. Each tag is a label consisting of a user-defined key and value. Tags can help you manage, identify, organize, search for, and filter resources. For more information about tagging Kinesis resources, see Tag your Amazon Kinesis Data Streams resources.
list_tags_for_streamselectregionLists the tags for the specified Kinesis data stream. This operation has a limit of five transactions per second per account. When invoking this API, you must use either the StreamARN or the StreamName parameter, or both. It is recommended that you use the StreamARN input parameter when you invoke this API.
untag_resourceupdateregion, TagKeys, ResourceARNRemoves tags from the specified Kinesis resource. Removed tags are deleted and can't be recovered after this operation completes successfully.
remove_tags_from_streamupdateregion, TagKeysRemoves tags from the specified Kinesis data stream. Removed tags are deleted and cannot be recovered after this operation successfully completes. When invoking this API, you must use either the StreamARN or the StreamName parameter, or both. It is recommended that you use the StreamARN input parameter when you invoke this API. If you specify a tag that does not exist, it is ignored. RemoveTagsFromStream has a limit of five transactions per second per account.
tag_resourceupdateregion, ResourceARNAdds or updates tags for the specified Kinesis resource. Each tag is a label consisting of a user-defined key and value. Tags can help you manage, identify, organize, search for, and filter resources. You can assign up to 50 tags to a Kinesis resource.
add_tags_to_streamupdateregionAdds or updates tags for the specified Kinesis data stream. You can assign up to 50 tags to a data stream. When invoking this API, you must use either the StreamARN or the StreamName parameter, or both. It is recommended that you use the StreamARN input parameter when you invoke this API. If tags have already been assigned to the stream, AddTagsToStream overwrites any existing tags that correspond to the specified tag keys. AddTagsToStream has a limit of five transactions per second per account.

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

List all tags added to the specified Kinesis resource. Each tag is a label consisting of a user-defined key and value. Tags can help you manage, identify, organize, search for, and filter resources. For more information about tagging Kinesis resources, see Tag your Amazon Kinesis Data Streams resources.

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

UPDATE examples

Removes tags from the specified Kinesis resource. Removed tags are deleted and can't be recovered after this operation completes successfully.

UPDATE aws.kinesis.tags
SET
TagKeys = '{{ TagKeys }}',
ResourceARN = '{{ ResourceARN }}',
StreamId = '{{ StreamId }}'
WHERE
region = '{{ region }}' --required
AND TagKeys = '{{ TagKeys }}' --required
AND ResourceARN = '{{ ResourceARN }}' --required;