Class APIGatewayV2HTTPEventFunction

java.lang.Object
io.micronaut.function.executor.AbstractExecutor
io.micronaut.function.executor.FunctionInitializer
io.micronaut.function.aws.proxy.payload2.APIGatewayV2HTTPEventFunction
All Implemented Interfaces:
com.amazonaws.services.lambda.runtime.RequestHandler<com.amazonaws.services.lambda.runtime.events.APIGatewayV2HTTPEvent,com.amazonaws.services.lambda.runtime.events.APIGatewayV2HTTPResponse>, io.micronaut.context.ApplicationContextProvider, Closeable, AutoCloseable

public class APIGatewayV2HTTPEventFunction extends io.micronaut.function.executor.FunctionInitializer implements com.amazonaws.services.lambda.runtime.RequestHandler<com.amazonaws.services.lambda.runtime.events.APIGatewayV2HTTPEvent,com.amazonaws.services.lambda.runtime.events.APIGatewayV2HTTPResponse>
Handles requests from API Gateway using the v2 payload format.
  • Nested Class Summary

    Nested classes/interfaces inherited from class io.micronaut.function.executor.FunctionInitializer

    io.micronaut.function.executor.FunctionInitializer.ParseContext
  • Field Summary

    Fields inherited from class io.micronaut.function.executor.FunctionInitializer

    closeContext

    Fields inherited from class io.micronaut.function.executor.AbstractExecutor

    applicationContext
  • Constructor Summary

    Constructors
    Constructor
    Description
     
    APIGatewayV2HTTPEventFunction(io.micronaut.context.ApplicationContext ctx)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    com.amazonaws.services.lambda.runtime.events.APIGatewayV2HTTPResponse
    handleRequest(com.amazonaws.services.lambda.runtime.events.APIGatewayV2HTTPEvent input, com.amazonaws.services.lambda.runtime.Context context)
     
    protected @NonNull io.micronaut.context.ApplicationContextBuilder
     

    Methods inherited from class io.micronaut.function.executor.FunctionInitializer

    close, injectThis, run, startThis

    Methods inherited from class io.micronaut.function.executor.AbstractExecutor

    buildApplicationContext, getApplicationContext, resolveFunction, resolveFunctionName, startEnvironment

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • APIGatewayV2HTTPEventFunction

      public APIGatewayV2HTTPEventFunction()
    • APIGatewayV2HTTPEventFunction

      public APIGatewayV2HTTPEventFunction(io.micronaut.context.ApplicationContext ctx)
  • Method Details

    • handleRequest

      public com.amazonaws.services.lambda.runtime.events.APIGatewayV2HTTPResponse handleRequest(com.amazonaws.services.lambda.runtime.events.APIGatewayV2HTTPEvent input, com.amazonaws.services.lambda.runtime.Context context)
      Specified by:
      handleRequest in interface com.amazonaws.services.lambda.runtime.RequestHandler<com.amazonaws.services.lambda.runtime.events.APIGatewayV2HTTPEvent,com.amazonaws.services.lambda.runtime.events.APIGatewayV2HTTPResponse>
    • newApplicationContextBuilder

      @NonNull protected @NonNull io.micronaut.context.ApplicationContextBuilder newApplicationContextBuilder()
      Overrides:
      newApplicationContextBuilder in class io.micronaut.function.executor.AbstractExecutor