public interface AwsLambdaRuntimeApi
Modifier and Type | Field and Description |
---|---|
static io.micronaut.http.uri.UriTemplate |
ERROR_TEMPLATE |
static java.lang.String |
INIT_ERROR_URI |
static io.micronaut.http.uri.UriTemplate |
INVOCATION_TEMPLATE |
static java.lang.String |
LAMBDA_RUNTIME_FUNCTION_ERROR_TYPE |
static java.lang.String |
NEXT_INVOCATION_URI |
static java.lang.String |
PATH_REQUEST_ID |
Modifier and Type | Method and Description |
---|---|
default java.lang.String |
errorUri(java.lang.String requestId) |
default io.micronaut.http.HttpRequest<AwsLambdaRuntimeApiError> |
initializationErrorRequest(java.lang.String errorMessage,
java.lang.String errorType,
java.lang.String lambdaFunctionErrorType) |
default io.micronaut.http.HttpRequest<AwsLambdaRuntimeApiError> |
invocationErrorRequest(java.lang.String requestId,
java.lang.String errorMessage,
java.lang.String errorType,
java.lang.String lambdaFunctionErrorType) |
default io.micronaut.http.HttpRequest |
invocationResponseRequest(java.lang.String requestId,
java.lang.Object body) |
default java.lang.String |
responseUri(java.lang.String requestId) |
static final java.lang.String PATH_REQUEST_ID
static final io.micronaut.http.uri.UriTemplate INVOCATION_TEMPLATE
static final io.micronaut.http.uri.UriTemplate ERROR_TEMPLATE
static final java.lang.String NEXT_INVOCATION_URI
static final java.lang.String INIT_ERROR_URI
static final java.lang.String LAMBDA_RUNTIME_FUNCTION_ERROR_TYPE
@NonNull default java.lang.String responseUri(@NonNull java.lang.String requestId)
requestId
- AWS Lambda Request ID@NonNull default java.lang.String errorUri(@NonNull java.lang.String requestId)
requestId
- AWS Lambda Request IDdefault io.micronaut.http.HttpRequest invocationResponseRequest(@NonNull java.lang.String requestId, java.lang.Object body)
requestId
- AWS Lambda Request IDbody
- The body of the requestdefault io.micronaut.http.HttpRequest<AwsLambdaRuntimeApiError> invocationErrorRequest(@NonNull java.lang.String requestId, @Nullable java.lang.String errorMessage, @Nullable java.lang.String errorType, @Nullable java.lang.String lambdaFunctionErrorType)
requestId
- Lambda Request IdentifiererrorMessage
- Error MessageerrorType
- Error TypelambdaFunctionErrorType
- Lambda Function Error Typedefault io.micronaut.http.HttpRequest<AwsLambdaRuntimeApiError> initializationErrorRequest(@Nullable java.lang.String errorMessage, @Nullable java.lang.String errorType, @Nullable java.lang.String lambdaFunctionErrorType)
errorMessage
- Error MessageerrorType
- Error TypelambdaFunctionErrorType
- Lambda Function Error Type