Class LambdaDestination
Use an AWS Lambda function as an event destination.
Implements
Namespace: Amazon.CDK.AWS.AppConfig
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class LambdaDestination : DeputyBase, IEventDestination
Syntax (vb)
Public Class LambdaDestination Inherits DeputyBase Implements IEventDestination
Remarks
ExampleMetadata: infused
Examples
Function fn;
new Extension(this, "MyExtension", new ExtensionProps {
Actions = new [] {
new Action(new ActionProps {
ActionPoints = new [] { ActionPoint.ON_DEPLOYMENT_START },
EventDestination = new LambdaDestination(fn)
}) }
});
Synopsis
Constructors
| LambdaDestination(IFunction) | Use an AWS Lambda function as an event destination. |
Properties
| ExtensionUri | The URI of the extension event destination. |
| PolicyDocument | The IAM policy document to invoke the event destination. |
| Type | The type of the extension event destination. |
Constructors
LambdaDestination(IFunction)
Use an AWS Lambda function as an event destination.
public LambdaDestination(IFunction func)
Parameters
- func IFunction
Remarks
ExampleMetadata: infused
Examples
Function fn;
new Extension(this, "MyExtension", new ExtensionProps {
Actions = new [] {
new Action(new ActionProps {
ActionPoints = new [] { ActionPoint.ON_DEPLOYMENT_START },
EventDestination = new LambdaDestination(fn)
}) }
});
Properties
ExtensionUri
The URI of the extension event destination.
public virtual string ExtensionUri { get; }
Property Value
Remarks
ExampleMetadata: infused
PolicyDocument
The IAM policy document to invoke the event destination.
public virtual PolicyDocument? PolicyDocument { get; }
Property Value
Remarks
ExampleMetadata: infused
Type
The type of the extension event destination.
public virtual SourceType Type { get; }
Property Value
Remarks
ExampleMetadata: infused