Class LambdaDestination.Builder
java.lang.Object
software.amazon.awscdk.services.lambda.destinations.LambdaDestination.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<LambdaDestination>
- Enclosing class:
LambdaDestination
@Stability(Stable)
public static final class LambdaDestination.Builder
extends Object
implements software.amazon.jsii.Builder<LambdaDestination>
A fluent builder for
LambdaDestination.-
Method Summary
Modifier and TypeMethodDescriptionbuild()static LambdaDestination.BuilderresponseOnly(Boolean responseOnly) Whether the destination function receives only theresponsePayloadof the source function.
-
Method Details
-
create
- Parameters:
fn- This parameter is required.- Returns:
- a new instance of
LambdaDestination.Builder.
-
responseOnly
Whether the destination function receives only theresponsePayloadof the source function.When set to
trueand used asonSuccessdestination, the destination function will be invoked with the payload returned by the source function.When set to
trueand used asonFailuredestination, 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.
- Parameters:
responseOnly- Whether the destination function receives only theresponsePayloadof the source function. This parameter is required.- Returns:
this
-
build
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<LambdaDestination>- Returns:
- a newly built instance of
LambdaDestination.
-