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.Builder
responseOnly
(Boolean responseOnly) Whether the destination function receives only theresponsePayload
of 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 theresponsePayload
of the source function.When set to
true
and used asonSuccess
destination, the destination function will be invoked with the payload returned by the source function.When set to
true
and used asonFailure
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.
- Parameters:
responseOnly
- Whether the destination function receives only theresponsePayload
of the source function. This parameter is required.- Returns:
this
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<LambdaDestination>
- Returns:
- a newly built instance of
LambdaDestination
.
-