aws.kinesis.stream.put_record
The aws.kinesis.stream.put_record command is used to put a record in the Kinesis stream.
TR50 Request
{
"cmd" : {
"command" : "aws.kinesis.stream.put_record",
"params" : {
"region" : "XXXXXXX",
"streamName" : "XXXXXXX",
"partitionKey" : "XXXXXXX",
"payload": {},
"hasKey": "XXXXXXX",
"sequenceNumber": "XXXXXXX"
}
}
}
Request Parameters
Name | Type | Required | Description |
---|---|---|---|
region | String | Region of the AWS instance, For example, us-east-1 | |
streamName | String | Yes | The name of the stream to put the data record into. |
partitionKey | String | Yes | Determines which shard in the stream the data record is assigned to. |
payload | Array | Yes | The data blob to put into the record. |
hashKey | String | The hash value used to explicitly determine the shard the data record is assigned to by overriding the partition key hash. | |
sequenceNumber | String | Guarantees strictly increasing sequence numbers, for puts from the same client and to the same partition key. |
If the command is sent successfully a success message is returned. Otherwise, an error and error message will be returned.
TR50 Response
{
"cmd": {
"success": true
}
}