Create a new lambda app.
OptionalcontrollersPath: 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.
OptionalappConfig: AppConfig(Optional) Application config to pass to lambda-api.
OptionalappContainer: Container(Optional) InversifyJS IOC Container instance which can build
controllers and error interceptors.
Protected ReadonlyapiProtectedapp(Optional) Application config to pass to lambda-api, defaults to new AppConfig.
Protectedapp(Optional) InversifyJS IOC Container instance which can
build controllers and error interceptors, defaults to new Container with
autoBindInjectable flag set to true.
Protected Optional Readonlycontrollers(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.
ProtectedinitialisedProtected ReadonlylogProtectedloggerConfigure the API instance from the lambda-api package.
Configure the InversifyJS IOC Container instance.
Function that takes a Container instance as a parameter.
Initialise all controllers and endpoints declared using decorators.
Process the passed lambda event and context as a synchronous HTTP request.
Request context.
The response.
Impementation of the
ApiAppclass that handles native AWS Lambda requests and can be used to provide a Lambda function handler.The
runmethod is the function handler entrypoint.