Last active
September 30, 2016 05:01
-
-
Save tywong/eeae17b208407d4ba98b8cf2514ac3a2 to your computer and use it in GitHub Desktop.
This file contains 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
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