Skip to content

Instantly share code, notes, and snippets.

@tywong
Last active September 30, 2016 05:01
Show Gist options
  • Save tywong/eeae17b208407d4ba98b8cf2514ac3a2 to your computer and use it in GitHub Desktop.
Save tywong/eeae17b208407d4ba98b8cf2514ac3a2 to your computer and use it in GitHub Desktop.
var params = {
Records: [ /* required */
{
Data: new Buffer('...') || 'STRING_VALUE', /* required */
PartitionKey: 'STRING_VALUE', /* required */
ExplicitHashKey: 'STRING_VALUE'
},
/* more items */
],
StreamName: 'STRING_VALUE' /* required */
};
kinesis.putRecords(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment