Class CfnAutoScalingGroup.RetentionTriggersProperty.Builder
java.lang.Object
software.amazon.awscdk.services.autoscaling.CfnAutoScalingGroup.RetentionTriggersProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnAutoScalingGroup.RetentionTriggersProperty>
- Enclosing interface:
CfnAutoScalingGroup.RetentionTriggersProperty
@Stability(Stable)
public static final class CfnAutoScalingGroup.RetentionTriggersProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnAutoScalingGroup.RetentionTriggersProperty>
A builder for
CfnAutoScalingGroup.RetentionTriggersProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.terminateHookAbandon(String terminateHookAbandon) Sets the value ofCfnAutoScalingGroup.RetentionTriggersProperty.getTerminateHookAbandon()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
terminateHookAbandon
@Stability(Stable) public CfnAutoScalingGroup.RetentionTriggersProperty.Builder terminateHookAbandon(String terminateHookAbandon) Sets the value ofCfnAutoScalingGroup.RetentionTriggersProperty.getTerminateHookAbandon()- Parameters:
terminateHookAbandon- Specifies the action when a termination lifecycle hook is abandoned due to failure, timeout, or explicit abandonment (calling CompleteLifecycleAction). Set toRetainto move instances to aRetainedstate. Set toTerminatefor 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<CfnAutoScalingGroup.RetentionTriggersProperty>- Returns:
- a new instance of
CfnAutoScalingGroup.RetentionTriggersProperty - Throws:
NullPointerException- if any required attribute was not provided
-