@Stability(value=Experimental) public static final class LambdaDestinationOptions.Builder extends Object implements software.amazon.jsii.Builder<LambdaDestinationOptions>
LambdaDestinationOptions
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
LambdaDestinationOptions |
build()
Builds the configured instance.
|
LambdaDestinationOptions.Builder |
responseOnly(Boolean responseOnly)
Sets the value of
LambdaDestinationOptions.getResponseOnly() |
@Stability(value=Experimental) public LambdaDestinationOptions.Builder responseOnly(Boolean responseOnly)
LambdaDestinationOptions.getResponseOnly()
responseOnly
- Whether the destination function receives only the `responsePayload` of the source function.
When set to true
and used as onSuccess
destination, the destination
function will be invoked with the payload returned by the source function.
When set to true
and used as onFailure
destination, the destination
function will be invoked with the error object returned by source function.
See the README of this module to see a full explanation of this option.
this
@Stability(value=Experimental) public LambdaDestinationOptions build()
build
in interface software.amazon.jsii.Builder<LambdaDestinationOptions>
LambdaDestinationOptions
NullPointerException
- if any required attribute was not providedCopyright © 2021. All rights reserved.