Class MicronautLambdaRuntime

java.lang.Object
io.micronaut.function.aws.runtime.AbstractMicronautLambdaRuntime<com.amazonaws.services.lambda.runtime.events.APIGatewayProxyRequestEvent,com.amazonaws.services.lambda.runtime.events.APIGatewayProxyResponseEvent,com.amazonaws.services.lambda.runtime.events.APIGatewayProxyRequestEvent,com.amazonaws.services.lambda.runtime.events.APIGatewayProxyResponseEvent>
io.micronaut.function.aws.runtime.MicronautLambdaRuntime
All Implemented Interfaces:
io.micronaut.context.ApplicationContextProvider, AwsLambdaRuntimeApi

public class MicronautLambdaRuntime extends AbstractMicronautLambdaRuntime<com.amazonaws.services.lambda.runtime.events.APIGatewayProxyRequestEvent,com.amazonaws.services.lambda.runtime.events.APIGatewayProxyResponseEvent,com.amazonaws.services.lambda.runtime.events.APIGatewayProxyRequestEvent,com.amazonaws.services.lambda.runtime.events.APIGatewayProxyResponseEvent>
Main entry for AWS API proxy with Micronaut.
Since:
2.0.0
Author:
sdelamo
  • Constructor Details

    • MicronautLambdaRuntime

      public MicronautLambdaRuntime()
  • Method Details

    • createRequestHandler

      protected com.amazonaws.services.lambda.runtime.RequestHandler<com.amazonaws.services.lambda.runtime.events.APIGatewayProxyRequestEvent,com.amazonaws.services.lambda.runtime.events.APIGatewayProxyResponseEvent> createRequestHandler(String... args)
      Overrides:
      createRequestHandler in class AbstractMicronautLambdaRuntime<com.amazonaws.services.lambda.runtime.events.APIGatewayProxyRequestEvent,com.amazonaws.services.lambda.runtime.events.APIGatewayProxyResponseEvent,com.amazonaws.services.lambda.runtime.events.APIGatewayProxyRequestEvent,com.amazonaws.services.lambda.runtime.events.APIGatewayProxyResponseEvent>
      Parameters:
      args - Command Line Args
      Returns:
      a RequestHandler or null.
    • main

      public static void main(String[] args) throws Exception
      Parameters:
      args - Command Line args
      Throws:
      Exception