Class WarmPoolOptions.Builder

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

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

    • Builder

      public Builder()
  • Method Details

    • maxGroupPreparedCapacity

      @Stability(Stable) public WarmPoolOptions.Builder maxGroupPreparedCapacity(Number maxGroupPreparedCapacity)
      Parameters:
      maxGroupPreparedCapacity - The maximum number of instances that are allowed to be in the warm pool or in any state except Terminated for the Auto Scaling group. If the value is not specified, Amazon EC2 Auto Scaling launches and maintains the difference between the group's maximum capacity and its desired capacity.
      Returns:
      this
    • minSize

      @Stability(Stable) public WarmPoolOptions.Builder minSize(Number minSize)
      Parameters:
      minSize - The minimum number of instances to maintain in the warm pool.
      Returns:
      this
    • poolState

      @Stability(Stable) public WarmPoolOptions.Builder poolState(PoolState poolState)
      Parameters:
      poolState - The instance state to transition to after the lifecycle actions are complete.
      Returns:
      this
    • reuseOnScaleIn

      @Stability(Stable) public WarmPoolOptions.Builder reuseOnScaleIn(Boolean reuseOnScaleIn)
      Parameters:
      reuseOnScaleIn - Indicates whether instances in the Auto Scaling group can be returned to the warm pool on scale in. If the value is not specified, instances in the Auto Scaling group will be terminated when the group scales in.
      Returns:
      this
    • build

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