Skip to main content

stream_consumers

Creates, updates, deletes or gets a stream_consumer resource or lists stream_consumers in a region

Overview

Namestream_consumers
TypeResource
DescriptionResource Type definition for AWS::Kinesis::StreamConsumer
Idawscc.kinesis.stream_consumers

Fields

NameDatatypeDescription
consumer_creation_timestampstringTimestamp when the consumer was created.
consumer_namestringThe name of the Kinesis Stream Consumer. For a given Kinesis data stream, each consumer must have a unique name. However, consumer names don't have to be unique across data streams.
consumer_arnstringThe ARN returned by Kinesis Data Streams when you registered the consumer. If you don't know the ARN of the consumer that you want to deregister, you can use the ListStreamConsumers operation to get a list of the descriptions of all the consumers that are currently registered with a given data stream. The description of a consumer contains its ARN.
consumer_statusstringA consumer can't read data while in the CREATING or DELETING states. Valid Values: CREATING | DELETING | ACTIVE
stream_arnstringThe Amazon resource name (ARN) of the Kinesis data stream that you want to register the consumer with.
tagsarrayAn arbitrary set of tags (key–value pairs) to associate with the Kinesis consumer.
regionstringAWS region.

For more information, see AWS::Kinesis::StreamConsumer.

Methods

NameAccessible byRequired Params
create_resourceINSERTConsumerName, StreamARN, region
delete_resourceDELETEdata__Identifier, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all properties from an individual stream_consumer.

SELECT
region,
consumer_creation_timestamp,
consumer_name,
consumer_arn,
consumer_status,
stream_arn,
tags
FROM awscc.kinesis.stream_consumers
WHERE region = 'us-east-1' AND data__Identifier = '<ConsumerARN>';

INSERT example

Use the following StackQL query and manifest file to create a new stream_consumer resource, using stack-deploy.

/*+ create */
INSERT INTO awscc.kinesis.stream_consumers (
ConsumerName,
StreamARN,
region
)
SELECT
'{{ ConsumerName }}',
'{{ StreamARN }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM awscc.kinesis.stream_consumers
WHERE data__Identifier = '<ConsumerARN>'
AND region = 'us-east-1';

Permissions

To operate on the stream_consumers resource, the following permissions are required:

Read

kinesis:DescribeStreamConsumer,
kinesis:ListTagsForResource

Create

kinesis:RegisterStreamConsumer,
kinesis:DescribeStreamConsumer,
kinesis:TagResource

List

kinesis:ListStreamConsumers

Delete

kinesis:DeregisterStreamConsumer,
kinesis:DescribeStreamConsumer,
kinesis:UntagResource