@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:42.964Z") @Stability(value=Stable) public class Trigger extends software.constructs.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. |
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)
Adds trigger dependencies.
|
void |
executeBefore(software.constructs.Construct... scopes)
Adds this trigger as a dependency on other constructs.
|
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetprotected Trigger(software.amazon.jsii.JsiiObjectRef objRef)
protected Trigger(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
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=Stable)
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=Stable)
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.