Package software.amazon.awscdk.triggers
Interface TriggerProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable,TriggerOptions
- All Known Implementing Classes:
TriggerProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.116.0 (build 0eddcff)",
date="2025-10-24T13:34:49.381Z")
@Stability(Stable)
public interface TriggerProps
extends software.amazon.jsii.JsiiSerializable, TriggerOptions
Props for
Trigger.
Example:
import software.amazon.awscdk.triggers.*;
Function func = Function.Builder.create(this, "MyFunction")
.handler("index.handler")
.runtime(Runtime.NODEJS_18_X)
.code(Code.fromInline("foo"))
.build();
Trigger.Builder.create(this, "MyTrigger")
.handler(func)
.timeout(Duration.minutes(10))
.invocationType(InvocationType.EVENT)
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forTriggerPropsstatic final classAn implementation forTriggerProps -
Method Summary
Modifier and TypeMethodDescriptionstatic TriggerProps.Builderbuilder()The AWS Lambda function of the handler to execute.default InvocationTypeThe invocation type to invoke the Lambda function with.default DurationThe timeout of the invocation call of the Lambda function to be triggered.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJsonMethods inherited from interface software.amazon.awscdk.triggers.TriggerOptions
getExecuteAfter, getExecuteBefore, getExecuteOnHandlerChange
-
Method Details
-
getHandler
The AWS Lambda function of the handler to execute. -
getInvocationType
The invocation type to invoke the Lambda function with.Default: RequestResponse
-
getTimeout
The timeout of the invocation call of the Lambda function to be triggered.Default: Duration.minutes(2)
-
builder
- Returns:
- a
TriggerProps.BuilderofTriggerProps
-