Created
February 21, 2023 11:35
-
-
Save DrishtiJ/ca9ab6039cbce49ada1e248281391ae8 to your computer and use it in GitHub Desktop.
AWS-Kinesis
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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