Class LambdaDestination
Use a Lambda function as a Lambda destination.
Inheritance
Implements
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
Lambda |
|
Lambda |
Used by jsii to construct an instance of this class from a Javascript-owned object reference |
Lambda |
Used by jsii to construct an instance of this class from DeputyProps |
Methods
Bind(Construct, IFunction, IDestination |
Returns a destination configuration. |
Constructors
LambdaDestination(IFunction, ILambdaDestinationOptions)
public LambdaDestination(IFunction fn, ILambdaDestinationOptions options = null)
Parameters
- fn IFunction
- options ILambda
Destination Options
LambdaDestination(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected LambdaDestination(ByRefValue reference)
Parameters
- reference Amazon.
JSII. Runtime. Deputy. By Ref Value The Javascript-owned object reference
LambdaDestination(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected LambdaDestination(DeputyBase.DeputyProps props)
Parameters
- props Amazon.
JSII. Runtime. Deputy. Deputy Base. Deputy Props The deputy props
Methods
Bind(Construct, IFunction, IDestinationOptions)
Returns a destination configuration.
public virtual IDestinationConfig Bind(Construct scope, IFunction fn, IDestinationOptions options = null)
Parameters
- scope Constructs.
Construct - fn IFunction
- options IDestination
Options
Returns