kinesis-router
v1.3.1
Published
Kinesis event router for lambda functions
Downloads
21
Readme
kinesis-router
Kinesis event router for lambda functions
Usage
/* Lambda function */
import router from "kinesis-router";
function doSomething (event) {
console.log("Do something with:");
console.log(event);
}
function doSomethingElse (event) {
console.log("Do something else with:");
console.log(event);
}
export var handler = router()
.on("event_one", doSomething)
.on("event_two", doSomethingElse);