Create a new lambda app.
Optional
controllersPath: string[](Optional) Paths to the directories that contain controller js
files.
Required if the default Container
is used, or the provided
Container
instance has its autoBindInjectable
flag set to true
.
Ignored if the provided Container
instance has its autoBindInjectable
flag set to false
.
Optional
appConfig: AppConfig(Optional) Application config to pass to lambda-api
.
Optional
appContainer: Container(Optional) InversifyJS
IOC Container
instance which can build
controllers and error interceptors.
Protected
Readonly
apiProtected
app(Optional) Application config to pass to lambda-api
, defaults to new AppConfig
.
Protected
app(Optional) InversifyJS
IOC Container
instance which can
build controllers and error interceptors, defaults to new Container
with
autoBindInjectable
flag set to true
.
Protected
Optional
Readonly
controllers(Optional) Paths to the directories that contain controller js
files that
declare controllers. Required if the default Container
is used, or the
provided Container
instance has its autoBindInjectable
flag set to true
.
Ignored if the provided Container
instance has its autoBindInjectable
flag set to false
.
Protected
initialisedProtected
Readonly
logProtected
loggerProcess the passed lambda event and context as a synchronous HTTP request.
Request context.
The response.
Generated using TypeDoc
Impementation of the
ApiApp
class that handles native AWS Lambda requests and can be used to provide a Lambda function handler.The
run
method is the function handler entrypoint.