| Modifier and Type | Method and Description |
|---|---|
Trigger |
build() |
static Trigger.Builder |
create(software.constructs.Construct scope,
String id) |
Trigger.Builder |
executeAfter(List<? extends software.constructs.Construct> executeAfter)
Adds trigger dependencies.
|
Trigger.Builder |
executeBefore(List<? extends software.constructs.Construct> executeBefore)
Adds this trigger as a dependency on other constructs.
|
Trigger.Builder |
executeOnHandlerChange(Boolean executeOnHandlerChange)
Re-executes the trigger every time the handler changes.
|
Trigger.Builder |
handler(Function handler)
The AWS Lambda function of the handler to execute.
|
@Stability(value=Stable) public static Trigger.Builder create(software.constructs.Construct scope, String id)
scope - This parameter is required.id - This parameter is required.Trigger.Builder.@Stability(value=Stable) public Trigger.Builder executeAfter(List<? extends software.constructs.Construct> executeAfter)
You can also use trigger.executeAfter() to add additional dependencies.
Default: []
executeAfter - Adds trigger dependencies. Execute this trigger only after these construct scopes have been provisioned. This parameter is required.this@Stability(value=Stable) public Trigger.Builder executeBefore(List<? extends software.constructs.Construct> executeBefore)
This means that this trigger will get executed before the given construct(s).
You can also use trigger.executeBefore() to add additional dependants.
Default: []
executeBefore - Adds this trigger as a dependency on other constructs. This parameter is required.this@Stability(value=Stable) public Trigger.Builder executeOnHandlerChange(Boolean executeOnHandlerChange)
This implies that the trigger is associated with the currentVersion of
the handler, which gets recreated every time the handler or its
configuration is updated.
Default: true
executeOnHandlerChange - Re-executes the trigger every time the handler changes. This parameter is required.this@Stability(value=Stable) public Trigger.Builder handler(Function handler)
handler - The AWS Lambda function of the handler to execute. This parameter is required.thisCopyright © 2022. All rights reserved.