Class SignalsOptions.Builder

java.lang.Object
software.amazon.awscdk.services.autoscaling.SignalsOptions.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<SignalsOptions>
Enclosing interface:
SignalsOptions

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

    • Builder

      public Builder()
  • Method Details

    • minSuccessPercentage

      @Stability(Stable) public SignalsOptions.Builder minSuccessPercentage(Number minSuccessPercentage)
      Parameters:
      minSuccessPercentage - The percentage of signals that need to be successful. If this number is less than 100, a percentage of signals may be failure signals while still succeeding the creation or update in CloudFormation.
      Returns:
      this
    • timeout

      @Stability(Stable) public SignalsOptions.Builder timeout(Duration timeout)
      Sets the value of SignalsOptions.getTimeout()
      Parameters:
      timeout - How long to wait for the signals to be sent. This should reflect how long it takes your instances to start up (including instance start time and instance initialization time).
      Returns:
      this
    • build

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