Interface LambdaDestinationOptions
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
LambdaDestinationOptions.Jsii$Proxy
@Generated(value="jsii-pacmak/1.116.0 (build 0eddcff)",
date="2025-10-29T11:15:42.735Z")
@Stability(Stable)
public interface LambdaDestinationOptions
extends software.amazon.jsii.JsiiSerializable
Options for a Lambda destination.
Example:
// Auto-extract response payload with a lambda destination
Function destinationFn;
Function sourceFn = Function.Builder.create(this, "Source")
.runtime(Runtime.NODEJS_LATEST)
.handler("index.handler")
.code(Code.fromAsset(join(__dirname, "lambda-handler")))
// auto-extract on success
.onSuccess(LambdaDestination.Builder.create(destinationFn)
.responseOnly(true)
.build())
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forLambdaDestinationOptionsstatic final classAn implementation forLambdaDestinationOptions -
Method Summary
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getResponseOnly
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.
-
builder
- Returns:
- a
LambdaDestinationOptions.BuilderofLambdaDestinationOptions
-