@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-07T23:47:16.251Z") @Stability(value=Experimental) 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.constructs.*;
import software.amazon.awscdk.services.lambda.*;
import software.amazon.awscdk.triggers.*;
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
(experimental) A fluent builder for
Trigger. |
software.amazon.jsii.JsiiObject.InitializationModeITrigger.Jsii$Default, ITrigger.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
|
Trigger(software.constructs.Construct scope,
String id,
TriggerProps props) |
protected |
Trigger(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
Trigger(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
void |
executeAfter(software.constructs.Construct... scopes)
(experimental) Adds trigger dependencies.
|
void |
executeBefore(software.constructs.Construct... scopes)
(experimental) Adds this trigger as a dependency on other constructs.
|
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validatejsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetNodeprotected Trigger(software.amazon.jsii.JsiiObjectRef objRef)
protected Trigger(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Experimental)
public Trigger(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
TriggerProps props)
scope - This parameter is required.id - This parameter is required.props - This parameter is required.@Stability(value=Experimental)
public void executeAfter(@NotNull
software.constructs.Construct... scopes)
Execute this trigger only after these construct scopes have been provisioned.
executeAfter in interface ITriggerscopes - This parameter is required.@Stability(value=Experimental)
public void executeBefore(@NotNull
software.constructs.Construct... scopes)
This means that this trigger will get executed before the given construct(s).
executeBefore in interface ITriggerscopes - This parameter is required.Copyright © 2022. All rights reserved.