@Stability(value=Stable) public static final class TriggerProps.Builder extends Object implements software.amazon.jsii.Builder<TriggerProps>
TriggerProps| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
TriggerProps |
build()
Builds the configured instance.
|
TriggerProps.Builder |
executeAfter(List<? extends software.constructs.Construct> executeAfter)
Sets the value of
TriggerOptions.getExecuteAfter() |
TriggerProps.Builder |
executeBefore(List<? extends software.constructs.Construct> executeBefore)
Sets the value of
TriggerOptions.getExecuteBefore() |
TriggerProps.Builder |
executeOnHandlerChange(Boolean executeOnHandlerChange)
Sets the value of
TriggerOptions.getExecuteOnHandlerChange() |
TriggerProps.Builder |
handler(Function handler)
Sets the value of
TriggerProps.getHandler() |
@Stability(value=Stable) public TriggerProps.Builder handler(Function handler)
TriggerProps.getHandler()handler - The AWS Lambda function of the handler to execute. This parameter is required.this@Stability(value=Stable) public TriggerProps.Builder executeAfter(List<? extends software.constructs.Construct> executeAfter)
TriggerOptions.getExecuteAfter()executeAfter - Adds trigger dependencies. Execute this trigger only after these construct scopes have been provisioned.
You can also use trigger.executeAfter() to add additional dependencies.this@Stability(value=Stable) public TriggerProps.Builder executeBefore(List<? extends software.constructs.Construct> executeBefore)
TriggerOptions.getExecuteBefore()executeBefore - 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.
this@Stability(value=Stable) public TriggerProps.Builder executeOnHandlerChange(Boolean executeOnHandlerChange)
TriggerOptions.getExecuteOnHandlerChange()executeOnHandlerChange - Re-executes the trigger every time the handler changes.
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.this@Stability(value=Stable) public TriggerProps build()
build in interface software.amazon.jsii.Builder<TriggerProps>TriggerPropsNullPointerException - if any required attribute was not providedCopyright © 2022. All rights reserved.