Interface ITriggerProps
Props for Trigger.
Inherited Members
Namespace: Amazon.CDK.Triggers
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface ITriggerProps : ITriggerOptions
Syntax (vb)
Public Interface ITriggerProps Inherits ITriggerOptions
Remarks
ExampleMetadata: infused
Examples
using Amazon.CDK.Triggers;
var func = new Function(this, "MyFunction", new FunctionProps {
Handler = "index.handler",
Runtime = Runtime.NODEJS_LATEST,
Code = Code.FromInline("foo")
});
new Trigger(this, "MyTrigger", new TriggerProps {
Handler = func,
Timeout = Duration.Minutes(10),
InvocationType = InvocationType.EVENT
});
Synopsis
Properties
| Handler | The AWS Lambda function of the handler to execute. |
| InvocationType | The invocation type to invoke the Lambda function with. |
| Timeout | The timeout of the invocation call of the Lambda function to be triggered. |
Properties
Handler
The AWS Lambda function of the handler to execute.
Function Handler { get; }
Property Value
Remarks
ExampleMetadata: infused
InvocationType
The invocation type to invoke the Lambda function with.
InvocationType? InvocationType { get; }
Property Value
Remarks
Default: RequestResponse
Timeout
The timeout of the invocation call of the Lambda function to be triggered.
Duration? Timeout { get; }
Property Value
Remarks
Default: Duration.minutes(2)