Class LambdaDestination
java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.lambda.destinations.LambdaDestination
- All Implemented Interfaces:
IDestination,software.amazon.jsii.JsiiSerializable
@Generated(value="jsii-pacmak/1.118.0 (build 02eec31)",
date="2025-11-10T13:40:08.920Z")
@Stability(Stable)
public class LambdaDestination
extends software.amazon.jsii.JsiiObject
implements IDestination
Use a Lambda function as 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 ClassesNested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.services.lambda.IDestination
IDestination.Jsii$Default, IDestination.Jsii$Proxy -
Constructor Summary
ConstructorsModifierConstructorDescriptionLambdaDestination(IFunction fn, LambdaDestinationOptions options) protectedLambdaDestination(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedLambdaDestination(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionReturns a destination configuration.bind(software.constructs.Construct scope, IFunction fn, DestinationOptions options) Returns a destination configuration.Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Constructor Details
-
LambdaDestination
protected LambdaDestination(software.amazon.jsii.JsiiObjectRef objRef) -
LambdaDestination
protected LambdaDestination(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
LambdaDestination
@Stability(Stable) public LambdaDestination(@NotNull IFunction fn, @Nullable LambdaDestinationOptions options) - Parameters:
fn- This parameter is required.options-
-
LambdaDestination
- Parameters:
fn- This parameter is required.
-
-
Method Details
-
bind
@Stability(Stable) @NotNull public DestinationConfig bind(@NotNull software.constructs.Construct scope, @NotNull IFunction fn, @Nullable DestinationOptions options) Returns a destination configuration.- Specified by:
bindin interfaceIDestination- Parameters:
scope- This parameter is required.fn- This parameter is required.options-
-
bind
@Stability(Stable) @NotNull public DestinationConfig bind(@NotNull software.constructs.Construct scope, @NotNull IFunction fn) Returns a destination configuration.- Specified by:
bindin interfaceIDestination- Parameters:
scope- This parameter is required.fn- This parameter is required.
-