@Generated(value="jsii-pacmak/1.63.2 (build a8a8833)", date="2022-08-02T20:25:32.005Z") public class Trigger extends Construct implements ITrigger
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_; Trigger trigger = Trigger.Builder.create(this, "MyTrigger") .handler(function_) // the properties below are optional .executeAfter(List.of(construct)) .executeBefore(List.of(construct)) .executeOnHandlerChange(false) .build();
Modifier and Type | Class and Description |
---|---|
static class |
Trigger.Builder
A fluent builder for
Trigger . |
ITrigger.Jsii$Default, ITrigger.Jsii$Proxy
Modifier | Constructor and Description |
---|---|
protected |
Trigger(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
Trigger(software.amazon.jsii.JsiiObjectRef objRef) |
|
Trigger(software.constructs.Construct scope,
java.lang.String id,
TriggerProps props) |
Modifier and Type | Method and Description |
---|---|
void |
executeAfter(software.constructs.Construct... scopes)
Adds trigger dependencies.
|
void |
executeBefore(software.constructs.Construct... scopes)
Adds this trigger as a dependency on other constructs.
|
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getNode
protected Trigger(software.amazon.jsii.JsiiObjectRef objRef)
protected Trigger(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
public Trigger(software.constructs.Construct scope, java.lang.String id, TriggerProps props)
scope
- This parameter is required.id
- This parameter is required.props
- This parameter is required.public void executeAfter(software.constructs.Construct... scopes)
Execute this trigger only after these construct scopes have been provisioned.
executeAfter
in interface ITrigger
scopes
- This parameter is required.public void executeBefore(software.constructs.Construct... scopes)
This means that this trigger will get executed before the given construct(s).
executeBefore
in interface ITrigger
scopes
- This parameter is required.