A collection of utilities for middleware for AWS lambda functions.
These utilities are part of the lambda middleware series. They can be used independently.
Converts a handler that can either use a callback or return a Promise
to a handler that is only Promise
based.
This type is for a handler function that does not take a callback, but instead returns a promise for the response.
Creates an APIGatewayEvent
for testing.
Currently does not implement requestContext
.
Creates an AWS Lambda Context
for testing.
Currently does not implement done
, fail
, getRemainingTimeInMillis
and succeed
.