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_18_X,
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. |
Invocation |
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
InvocationType
The invocation type to invoke the Lambda function with.
virtual Nullable<InvocationType> InvocationType { get; }
Property Value
System.
Remarks
Default: RequestResponse
Timeout
The timeout of the invocation call of the Lambda function to be triggered.
virtual Duration Timeout { get; }
Property Value
Remarks
Default: Duration.minutes(2)