public static interface InvokeResponse.Builder extends LambdaResponse.Builder, SdkPojo, CopyableBuilder<InvokeResponse.Builder,InvokeResponse>
| Modifier and Type | Method and Description |
|---|---|
InvokeResponse.Builder |
executedVersion(String executedVersion)
The version of the function that executed.
|
InvokeResponse.Builder |
functionError(String functionError)
If present, indicates that an error occured during function execution.
|
InvokeResponse.Builder |
logResult(String logResult)
The last 4 KB of the execution log, base64 encoded.
|
InvokeResponse.Builder |
payload(SdkBytes payload)
The response from the function, or an error object.
|
InvokeResponse.Builder |
statusCode(Integer statusCode)
The HTTP status code will be in the 200 range for successful request.
|
build, responseMetadata, responseMetadatasdkHttpResponse, sdkHttpResponsecopyapplyMutation, buildInvokeResponse.Builder statusCode(Integer statusCode)
The HTTP status code will be in the 200 range for successful request. For the RequestResponse
invocation type this status code will be 200. For the Event invocation type this status code
will be 202. For the DryRun invocation type the status code will be 204.
statusCode - The HTTP status code will be in the 200 range for successful request. For the
RequestResponse invocation type this status code will be 200. For the Event
invocation type this status code will be 202. For the DryRun invocation type the status
code will be 204.InvokeResponse.Builder functionError(String functionError)
If present, indicates that an error occured during function execution. Details about the error are included in the response payload.
Handled - The runtime caught an error thrown by the function and formatted it into a JSON
document.
Unhandled - The runtime did not handle the error. For example, the function ran out of memory or
timed out.
functionError - If present, indicates that an error occured during function execution. Details about the error are
included in the response payload.
Handled - The runtime caught an error thrown by the function and formatted it into a JSON
document.
Unhandled - The runtime did not handle the error. For example, the function ran out of
memory or timed out.
InvokeResponse.Builder logResult(String logResult)
The last 4 KB of the execution log, base64 encoded.
logResult - The last 4 KB of the execution log, base64 encoded.InvokeResponse.Builder payload(SdkBytes payload)
The response from the function, or an error object.
payload - The response from the function, or an error object.InvokeResponse.Builder executedVersion(String executedVersion)
The version of the function that executed. When you invoke a function with an alias, indicates which version the alias resolved to.
executedVersion - The version of the function that executed. When you invoke a function with an alias, indicates which
version the alias resolved to.Copyright © 2019. All rights reserved.