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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.terminateHookAbandon(TerminateHookAbandonAction terminateHookAbandon) Sets the value ofRetentionTriggers.getTerminateHookAbandon()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
terminateHookAbandon
@Stability(Stable) public RetentionTriggers.Builder terminateHookAbandon(TerminateHookAbandonAction terminateHookAbandon) Sets the value ofRetentionTriggers.getTerminateHookAbandon()- 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
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<RetentionTriggers>- Returns:
- a new instance of
RetentionTriggers - Throws:
NullPointerException- if any required attribute was not provided
-