lambda-source
v1.0.1
Published
figures out the source of the event and returns the correct response, depending on the event
Readme
Introduction
AWS Lambda functions are great, but many times developers have many triggers on a single lambda function, this package aims to make handling the events from the triggers a lot easier, as well as knowing how to respond when the lambda is done executing
supports >[email protected]
Getting Started
import LambdaSource from "lambda-source";
exports.handler = (event) =>{
const source = new LambdaSource(event);
source.getRecords(); //gets passed in input data from source;
return source.respond(200); //responds with the correct format depending on the event
}