@Stability(value=Stable) public static final class LambdaDestination.Builder extends Object implements software.amazon.jsii.Builder<LambdaDestination>
LambdaDestination.| Modifier and Type | Method and Description |
|---|---|
LambdaDestination |
build() |
static LambdaDestination.Builder |
create(IFunction fn) |
LambdaDestination.Builder |
responseOnly(Boolean responseOnly)
Whether the destination function receives only the `responsePayload` of the source function.
|
@Stability(value=Stable) public static LambdaDestination.Builder create(IFunction fn)
fn - This parameter is required.LambdaDestination.Builder.@Stability(value=Stable) public LambdaDestination.Builder responseOnly(Boolean responseOnly)
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.
Default: false The destination function receives the full invocation record.
responseOnly - Whether the destination function receives only the `responsePayload` of the source function. This parameter is required.this@Stability(value=Stable) public LambdaDestination build()
build in interface software.amazon.jsii.Builder<LambdaDestination>Copyright © 2023. All rights reserved.