CopyableBuilder<InvokeResponse.Builder,InvokeResponse>, SdkBuilder<InvokeResponse.Builder,InvokeResponse>public static interface InvokeResponse.Builder extends CopyableBuilder<InvokeResponse.Builder,InvokeResponse>
| Modifier and Type | Method | Description |
|---|---|---|
InvokeResponse.Builder |
functionError(String functionError) |
Indicates whether an error occurred while executing the Lambda function.
|
InvokeResponse.Builder |
logResult(String logResult) |
It is the base64-encoded logs for the Lambda function invocation.
|
InvokeResponse.Builder |
payload(ByteBuffer payload) |
It is the JSON representation of the object returned by the Lambda function.
|
InvokeResponse.Builder |
statusCode(Integer statusCode) |
The HTTP status code will be in the 200 range for successful request.
|
copyapply, 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)
Indicates whether an error occurred while executing the Lambda function. If an error occurred this field will
have one of two values; Handled or Unhandled. Handled errors are
errors that are reported by the function while the Unhandled errors are those detected and
reported by AWS Lambda. Unhandled errors include out of memory errors and function timeouts. For information
about how to report an Handled error, see Programming Model.
functionError - Indicates whether an error occurred while executing the Lambda function. If an error occurred this
field will have one of two values; Handled or Unhandled.
Handled errors are errors that are reported by the function while the
Unhandled errors are those detected and reported by AWS Lambda. Unhandled errors include
out of memory errors and function timeouts. For information about how to report an
Handled error, see Programming Model.InvokeResponse.Builder logResult(String logResult)
It is the base64-encoded logs for the Lambda function invocation. This is present only if the invocation type
is RequestResponse and the logs were requested.
logResult - It is the base64-encoded logs for the Lambda function invocation. This is present only if the
invocation type is RequestResponse and the logs were requested.InvokeResponse.Builder payload(ByteBuffer payload)
It is the JSON representation of the object returned by the Lambda function. This is present only if the
invocation type is RequestResponse.
In the event of a function error this field contains a message describing the error. For the
Handled errors the Lambda function will report this message. For Unhandled errors
AWS Lambda reports the message.
payload - It is the JSON representation of the object returned by the Lambda function. This is present only if
the invocation type is RequestResponse.
In the event of a function error this field contains a message describing the error. For the
Handled errors the Lambda function will report this message. For Unhandled
errors AWS Lambda reports the message.
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.