Class TriggerOptions.Builder

java.lang.Object
software.amazon.awscdk.triggers.TriggerOptions.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<TriggerOptions>
Enclosing interface:
TriggerOptions

@Stability(Stable) public static final class TriggerOptions.Builder extends Object implements software.amazon.jsii.Builder<TriggerOptions>
A builder for TriggerOptions
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • executeAfter

      @Stability(Stable) public TriggerOptions.Builder executeAfter(List<? extends software.constructs.Construct> executeAfter)
      Parameters:
      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.
      Returns:
      this
    • executeBefore

      @Stability(Stable) public TriggerOptions.Builder executeBefore(List<? extends software.constructs.Construct> executeBefore)
      Parameters:
      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.

      Returns:
      this
    • executeOnHandlerChange

      @Stability(Stable) public TriggerOptions.Builder executeOnHandlerChange(Boolean executeOnHandlerChange)
      Parameters:
      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.
      Returns:
      this
    • build

      @Stability(Stable) public TriggerOptions build()
      Builds the configured instance.
      Specified by:
      build in interface software.amazon.jsii.Builder<TriggerOptions>
      Returns:
      a new instance of TriggerOptions
      Throws:
      NullPointerException - if any required attribute was not provided