Amazon Kinesis · Arazzo Workflow
Amazon Kinesis Create Stream and Put First Record
Version 1.0.0
Create a stream, wait until it is ACTIVE, then write the first data record.
Provider
Workflows
create-stream-and-put-record
Create a stream, poll until ACTIVE, then put the first record.
Creates the stream, loops on DescribeStreamSummary while CREATING, and once ACTIVE writes a single record with PutRecord, returning the shard and sequence number the record landed on.
1
createStream
CreateStream
Create the provisioned data stream with the requested shard count.
2
pollStatus
DescribeStreamSummary
Poll the stream summary, looping while CREATING and advancing to write the record once the stream is ACTIVE.
3
putRecord
PutRecord
Write the first data record into the now-active stream, returning the shard id and sequence number assigned to the record.