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
-
Field Summary
Fields inherited from class io.micronaut.function.aws.runtime.AbstractMicronautLambdaRuntime
handler, handlerRequestType, handlerResponseType, requestType, responseType, userAgent
Fields inherited from interface io.micronaut.function.aws.runtime.AwsLambdaRuntimeApi
ERROR_TEMPLATE, INIT_ERROR_URI, INVOCATION_TEMPLATE, LAMBDA_RUNTIME_FUNCTION_ERROR_TYPE, NEXT_INVOCATION_URI, PATH_REQUEST_ID
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected com.amazonaws.services.lambda.runtime.RequestHandler<com.amazonaws.services.lambda.runtime.events.APIGatewayProxyRequestEvent,
com.amazonaws.services.lambda.runtime.events.APIGatewayProxyResponseEvent> createRequestHandler
(String... args) static void
Methods inherited from class io.micronaut.function.aws.runtime.AbstractMicronautLambdaRuntime
createApplicationContextBuilderWithArgs, createEnvironmentHandler, createHandler, createHandlerRequest, createNextInvocationHttpRequest, createRequestStreamHandler, createResponse, createRuntimeContext, decorateWithUserAgent, getApplicationContext, getEnv, getLogLevel, handleInvocationException, handleInvocationForRequestHandler, handleInvocationForRequestStreamHandler, log, logn, logn, parseHandlerClass, populateUserAgent, propagateTraceId, reportInitializationError, respond, run, serializeAsByteArray, shouldLog, startRuntimeApiEventLoop, validateHandler, valueFromContent
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.micronaut.function.aws.runtime.AwsLambdaRuntimeApi
errorUri, initializationErrorRequest, invocationErrorRequest, invocationResponseRequest, responseUri
-
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 classAbstractMicronautLambdaRuntime<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
ornull
.
-
main
- Parameters:
args
- Command Line args- Throws:
Exception
-