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.84.0 (build 5404dcf)",
date="2023-06-19T16:30:41.495Z")
@Stability(Stable)
public interface TriggerProps
extends software.amazon.jsii.JsiiSerializable, TriggerOptions
Props for
Trigger.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.lambda.*;
import software.amazon.awscdk.triggers.*;
import software.constructs.*;
Construct construct;
Function function_;
TriggerProps triggerProps = TriggerProps.builder()
.handler(function_)
// the properties below are optional
.executeAfter(List.of(construct))
.executeBefore(List.of(construct))
.executeOnHandlerChange(false)
.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.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. -
builder
- Returns:
- a
TriggerProps.BuilderofTriggerProps
-