Class RetentionTriggers.Builder

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

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

    • Builder

      public Builder()
  • Method Details

    • terminateHookAbandon

      @Stability(Stable) public RetentionTriggers.Builder terminateHookAbandon(TerminateHookAbandonAction terminateHookAbandon)
      Parameters:
      terminateHookAbandon - Specifies the action when a termination lifecycle hook is abandoned due to failure, timeout, or explicit abandonment (calling CompleteLifecycleAction). Set to Retain to move instances to a Retained state. Set to Terminate for default termination behavior.

      Retained instances don't count toward desired capacity and remain until you call TerminateInstanceInAutoScalingGroup.

      Returns:
      this
    • build

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