Interface AwsLambdaRuntimeApi
- All Known Implementing Classes:
AbstractMicronautLambdaRuntime, AbstractRequestStreamHandlerMicronautLambdaRuntime, APIGatewayV2HTTPEventMicronautLambdaRuntime, ApplicationLoadBalancerMicronautLambdaRuntime, MicronautLambdaRuntime
public interface AwsLambdaRuntimeApi
- Since:
- 2.0.0
- Author:
- sdelamo
- See Also:
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiondefault @NonNull Stringdefault io.micronaut.http.HttpRequest<AwsLambdaRuntimeApiError> initializationErrorRequest(@Nullable String errorMessage, @Nullable String errorType, @Nullable String lambdaFunctionErrorType) default io.micronaut.http.HttpRequest<AwsLambdaRuntimeApiError> invocationErrorRequest(@NonNull String requestId, @Nullable String errorMessage, @Nullable String errorType, @Nullable String lambdaFunctionErrorType) default io.micronaut.http.HttpRequestinvocationResponseRequest(@NonNull String requestId, Object body) default @NonNull StringresponseUri(@NonNull String requestId)
-
Field Details
-
PATH_REQUEST_ID
- See Also:
-
INVOCATION_TEMPLATE
static final io.micronaut.http.uri.UriTemplate INVOCATION_TEMPLATE -
ERROR_TEMPLATE
static final io.micronaut.http.uri.UriTemplate ERROR_TEMPLATE -
NEXT_INVOCATION_URI
- See Also:
-
INIT_ERROR_URI
- See Also:
-
LAMBDA_RUNTIME_FUNCTION_ERROR_TYPE
- See Also:
-
-
Method Details
-
responseUri
-
errorUri
-
invocationResponseRequest
-
invocationErrorRequest
default io.micronaut.http.HttpRequest<AwsLambdaRuntimeApiError> invocationErrorRequest(@NonNull String requestId, @Nullable String errorMessage, @Nullable String errorType, @Nullable String lambdaFunctionErrorType) - Parameters:
requestId- Lambda Request IdentifiererrorMessage- Error MessageerrorType- Error TypelambdaFunctionErrorType- Lambda Function Error Type- Returns:
- A request to the invocation error path to inform in JSON format about the error which was thrown during the function execution.
-
initializationErrorRequest
default io.micronaut.http.HttpRequest<AwsLambdaRuntimeApiError> initializationErrorRequest(@Nullable String errorMessage, @Nullable String errorType, @Nullable String lambdaFunctionErrorType) - Parameters:
errorMessage- Error MessageerrorType- Error TypelambdaFunctionErrorType- Lambda Function Error Type- Returns:
- A post request which should be send if the runtime encounters an error during initialization to post an error message to the initialization error path.
-