Class InstanceRefreshOptions.Jsii$Proxy

java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.autoscaling.InstanceRefreshOptions.Jsii$Proxy
All Implemented Interfaces:
InstanceRefreshOptions, software.amazon.jsii.JsiiSerializable
Enclosing interface:
InstanceRefreshOptions

@Stability(Stable) @Internal public static final class InstanceRefreshOptions.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements InstanceRefreshOptions
An implementation for InstanceRefreshOptions
  • Constructor Details

    • Jsii$Proxy

      protected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
      Constructor that initializes the object based on values retrieved from the JsiiObject.
      Parameters:
      objRef - Reference to the JSII managed object.
    • Jsii$Proxy

      protected Jsii$Proxy(InstanceRefreshOptions.Builder builder)
      Constructor that initializes the object based on literal property values passed by the InstanceRefreshOptions.Builder.
  • Method Details

    • getStrategy

      public final InstanceRefreshStrategy getStrategy()
      Description copied from interface: InstanceRefreshOptions
      The strategy to use for the instance refresh.
      Specified by:
      getStrategy in interface InstanceRefreshOptions
    • getAlarms

      public final List<IAlarmRef> getAlarms()
      Description copied from interface: InstanceRefreshOptions
      The CloudWatch alarms to monitor during the instance refresh.

      If any of the alarms goes into ALARM state, the instance refresh fails. You can specify up to 10 alarms.

      Default: - no alarms

      Specified by:
      getAlarms in interface InstanceRefreshOptions
    • getBakeTime

      public final Duration getBakeTime()
      Description copied from interface: InstanceRefreshOptions
      The amount of time after an instance refresh completes successfully before CloudFormation considers the update successful.

      Default: Duration.seconds(0)

      Specified by:
      getBakeTime in interface InstanceRefreshOptions
    • getCheckpointDelay

      public final Duration getCheckpointDelay()
      Description copied from interface: InstanceRefreshOptions
      The amount of time to wait after a checkpoint is reached before continuing.

      Default: - 3600 seconds (1 hour), applied only when checkpointPercentages is set

      Specified by:
      getCheckpointDelay in interface InstanceRefreshOptions
    • getCheckpointPercentages

      public final List<Number> getCheckpointPercentages()
      Description copied from interface: InstanceRefreshOptions
      Threshold values for each checkpoint in ascending order.

      Each number must be unique. To replace all instances in the group, the last number in the array must be 100.

      Default: - no checkpoints

      Specified by:
      getCheckpointPercentages in interface InstanceRefreshOptions
    • getInstanceWarmup

      public final Duration getInstanceWarmup()
      Description copied from interface: InstanceRefreshOptions
      The amount of time to wait after a new instance enters the InService state before moving on to refresh the next instance.

      Default: - the group's DefaultInstanceWarmup if defined; otherwise the group's HealthCheckGracePeriod

      Specified by:
      getInstanceWarmup in interface InstanceRefreshOptions
    • getMaxHealthyPercentage

      public final Number getMaxHealthyPercentage()
      Description copied from interface: InstanceRefreshOptions
      The maximum percentage of the group that can be in service and healthy, or pending, to support your workload during the instance refresh.

      The difference between maxHealthyPercentage and minHealthyPercentage cannot be greater than 100. A larger range increases the number of instances that can be replaced at the same time.

      Default: - the value set in the Auto Scaling group's instance maintenance policy, if defined; otherwise 110 when the strategy is Rolling, or 100 when the strategy is ReplaceRootVolume

      Specified by:
      getMaxHealthyPercentage in interface InstanceRefreshOptions
    • getMinHealthyPercentage

      public final Number getMinHealthyPercentage()
      Description copied from interface: InstanceRefreshOptions
      The minimum percentage of the group to keep in service, healthy, and ready to use to support your workload during the instance refresh, expressed as a percentage of the group's desired capacity.

      Default: - the value set in the Auto Scaling group's instance maintenance policy, if defined; otherwise 100 when the strategy is Rolling, or 90 when the strategy is ReplaceRootVolume

      Specified by:
      getMinHealthyPercentage in interface InstanceRefreshOptions
    • getScaleInProtectedInstances

      public final ScaleInProtectedInstances getScaleInProtectedInstances()
      Description copied from interface: InstanceRefreshOptions
      Specifies the behavior of instances that are protected from scale in during an instance refresh.

      Default: ScaleInProtectedInstances.WAIT

      Specified by:
      getScaleInProtectedInstances in interface InstanceRefreshOptions
    • getSkipMatching

      public final Boolean getSkipMatching()
      Description copied from interface: InstanceRefreshOptions
      Indicates whether skip matching is enabled.

      Default: true

      Specified by:
      getSkipMatching in interface InstanceRefreshOptions
    • getStandbyInstances

      public final StandbyInstances getStandbyInstances()
      Description copied from interface: InstanceRefreshOptions
      Specifies the behavior of instances in standby during an instance refresh.

      Default: StandbyInstances.WAIT

      Specified by:
      getStandbyInstances in interface InstanceRefreshOptions
    • $jsii$toJson

      @Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
      Specified by:
      $jsii$toJson in interface software.amazon.jsii.JsiiSerializable
    • equals

      public final boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public final int hashCode()
      Overrides:
      hashCode in class Object