api

http4k / org.http4k.serverless / ApiGatewayV2LambdaFunction

ApiGatewayV2LambdaFunction

abstract class ApiGatewayV2LambdaFunction : AwsLambdaFunction<Map<String, Any>, Map<String, Any>>, RequestHandler<Map<String, Any>, Map<String, Any>>

This is the main entry point for lambda invocations using the V2 payload format. It uses the local environment to instantiate the HttpHandler which can be used for further invocations.

Constructors

Name Summary
<init> ApiGatewayV2LambdaFunction(input: AppLoader)
ApiGatewayV2LambdaFunction(input: HttpHandler)
This is the main entry point for lambda invocations using the V2 payload format. It uses the local environment to instantiate the HttpHandler which can be used for further invocations.ApiGatewayV2LambdaFunction(appLoader: AppLoaderWithContexts)

Functions

Name Summary
handleRequest open fun handleRequest(req: Map<String, Any>, ctx: Context): Map<String, Any>

Inheritors

Name Summary
TestFunctionV2 class TestFunctionV2 : ApiGatewayV2LambdaFunction