Package software.amazon.awscdk.triggers
Interface TriggerOptions
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Subinterfaces:
TriggerFunctionProps,TriggerProps
- All Known Implementing Classes:
TriggerFunctionProps.Jsii$Proxy,TriggerOptions.Jsii$Proxy,TriggerProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.118.0 (build 02eec31)",
date="2025-11-10T13:40:17.431Z")
@Stability(Stable)
public interface TriggerOptions
extends software.amazon.jsii.JsiiSerializable
Options 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.triggers.*;
import software.constructs.*;
Construct construct;
TriggerOptions triggerOptions = TriggerOptions.builder()
.executeAfter(List.of(construct))
.executeBefore(List.of(construct))
.executeOnHandlerChange(false)
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forTriggerOptionsstatic final classAn implementation forTriggerOptions -
Method Summary
Modifier and TypeMethodDescriptionstatic TriggerOptions.Builderbuilder()default List<software.constructs.Construct> Adds trigger dependencies.default List<software.constructs.Construct> Adds this trigger as a dependency on other constructs.default BooleanRe-executes the trigger every time the handler changes.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getExecuteAfter
Adds trigger dependencies. Execute this trigger only after these construct scopes have been provisioned.You can also use
trigger.executeAfter()to add additional dependencies.Default: []
-
getExecuteBefore
Adds this trigger as a dependency on other constructs.This means that this trigger will get executed before the given construct(s).
You can also use
trigger.executeBefore()to add additional dependants.Default: []
-
getExecuteOnHandlerChange
Re-executes the trigger every time the handler changes.This implies that the trigger is associated with the
currentVersionof the handler, which gets recreated every time the handler or its configuration is updated.Default: true
-
builder
- Returns:
- a
TriggerOptions.BuilderofTriggerOptions
-