Skip to content

Instantly share code, notes, and snippets.

@DrishtiJ
Created February 21, 2023 11:35
Show Gist options
  • Save DrishtiJ/ca9ab6039cbce49ada1e248281391ae8 to your computer and use it in GitHub Desktop.
Save DrishtiJ/ca9ab6039cbce49ada1e248281391ae8 to your computer and use it in GitHub Desktop.
AWS-Kinesis
import boto3
kinesis = boto3.client('kinesis')
response = kinesis.create_stream(
StreamName='new-stream',
ShardCount=1
)
putData = kinesis.put_record(
StreamName='new-stream',
Data='Hello world',
PartitionKey='partitionKey'
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment