lambda-express-middleware
v1.0.1
Published
express middleware to lambda functions from aws
Downloads
3
Maintainers
Readme
lambda-express-middleware
lambda middleware to express
API
lambdaExpress(params[, lambdaInstance]) -> ExpressMiddleware
params
{
FunctionName,
InvocationType = 'RequestResponse',
Qualifier = '$LATEST',
LogType = 'Tail'
}
Usage
app.use(
// other middleware
getMiddleware({
FunctionName: 'FunctionName',
InvocationType : 'InvocationType',
Qualifier: 'Qualifier',
LogType: 'LogType'
})
// middleware to manage the lambda response
// res.lambdaFunctionNameResponse is response from lambda
)