kinesis-client-library
Version:
Process Kinesis streams and automatically scale up or down as shards split or merge.
17 lines (16 loc) • 454 B
JavaScript
;
var aws_sdk_1 = require('aws-sdk');
exports.createKinesisClient = function (conf, endpoint) {
var instance = new aws_sdk_1.Kinesis(conf || {});
if (endpoint) {
instance.setEndpoint(endpoint);
}
return instance;
};
exports.createDynamoClient = function (conf, endpoint) {
var instance = new aws_sdk_1.DynamoDB(conf || {});
if (endpoint) {
instance.setEndpoint(endpoint);
}
return instance;
};