Show / Hide Table of Contents

Class LambdaDestination

Use a Lambda function as a Lambda destination.

Inheritance
object
LambdaDestination
Implements
IDestination
Namespace: Amazon.CDK.AWS.Lambda.Destinations
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class LambdaDestination : DeputyBase, IDestination
Syntax (vb)
Public Class LambdaDestination Inherits DeputyBase Implements IDestination
Remarks

ExampleMetadata: infused

Examples
// Auto-extract response payload with a lambda destination
            Function destinationFn;


            var sourceFn = new Function(this, "Source", new FunctionProps {
                Runtime = Runtime.NODEJS_LATEST,
                Handler = "index.handler",
                Code = Code.FromAsset(Join(__dirname, "lambda-handler")),
                // auto-extract on success
                OnSuccess = new LambdaDestination(destinationFn, new LambdaDestinationOptions {
                    ResponseOnly = true
                })
            });

Synopsis

Constructors

LambdaDestination(IFunction, ILambdaDestinationOptions?)

Use a Lambda function as a Lambda destination.

Methods

Bind(Construct, IFunction, IDestinationOptions?)

Returns a destination configuration.

Constructors

LambdaDestination(IFunction, ILambdaDestinationOptions?)

Use a Lambda function as a Lambda destination.

public LambdaDestination(IFunction fn, ILambdaDestinationOptions? options = null)
Parameters
fn IFunction
options ILambdaDestinationOptions
Remarks

ExampleMetadata: infused

Examples
// Auto-extract response payload with a lambda destination
            Function destinationFn;


            var sourceFn = new Function(this, "Source", new FunctionProps {
                Runtime = Runtime.NODEJS_LATEST,
                Handler = "index.handler",
                Code = Code.FromAsset(Join(__dirname, "lambda-handler")),
                // auto-extract on success
                OnSuccess = new LambdaDestination(destinationFn, new LambdaDestinationOptions {
                    ResponseOnly = true
                })
            });

Methods

Bind(Construct, IFunction, IDestinationOptions?)

Returns a destination configuration.

public virtual IDestinationConfig Bind(Construct scope, IFunction fn, IDestinationOptions? options = null)
Parameters
scope Construct
fn IFunction
options IDestinationOptions
Returns

IDestinationConfig

Remarks

ExampleMetadata: infused

Implements

IDestination
Back to top Generated by DocFX