@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:40.493Z") @Stability(value=Stable) public class LambdaDestination extends software.amazon.jsii.JsiiObject implements IDestination
Example:
// Auto-extract response payload with a lambda destination
Function destinationFn;
Function sourceFn = Function.Builder.create(this, "Source")
.runtime(Runtime.NODEJS_14_X)
.handler("index.handler")
.code(Code.fromAsset(join(__dirname, "lambda-handler")))
// auto-extract on success
.onSuccess(LambdaDestination.Builder.create(destinationFn)
.responseOnly(true)
.build())
.build();
| Modifier and Type | Class and Description |
|---|---|
static class |
LambdaDestination.Builder
A fluent builder for
LambdaDestination. |
software.amazon.jsii.JsiiObject.InitializationModeIDestination.Jsii$Default, IDestination.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
|
LambdaDestination(IFunction fn) |
|
LambdaDestination(IFunction fn,
LambdaDestinationOptions options) |
protected |
LambdaDestination(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
LambdaDestination(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
DestinationConfig |
bind(software.constructs.Construct scope,
IFunction fn)
Returns a destination configuration.
|
DestinationConfig |
bind(software.constructs.Construct scope,
IFunction fn,
DestinationOptions options)
Returns a destination configuration.
|
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetprotected LambdaDestination(software.amazon.jsii.JsiiObjectRef objRef)
protected LambdaDestination(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public LambdaDestination(@NotNull
IFunction fn,
@Nullable
LambdaDestinationOptions options)
fn - This parameter is required.options - @Stability(value=Stable)
public LambdaDestination(@NotNull
IFunction fn)
fn - This parameter is required.@Stability(value=Stable) @NotNull public DestinationConfig bind(@NotNull software.constructs.Construct scope, @NotNull IFunction fn, @Nullable DestinationOptions options)
bind in interface IDestinationscope - This parameter is required.fn - This parameter is required.options - @Stability(value=Stable) @NotNull public DestinationConfig bind(@NotNull software.constructs.Construct scope, @NotNull IFunction fn)
bind in interface IDestinationscope - This parameter is required.fn - This parameter is required.Copyright © 2022. All rights reserved.