Class CfnAutoScalingGroupPropsMixin.RetentionTriggersProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.autoscaling.CfnAutoScalingGroupPropsMixin.RetentionTriggersProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnAutoScalingGroupPropsMixin.RetentionTriggersProperty>
- Enclosing interface:
CfnAutoScalingGroupPropsMixin.RetentionTriggersProperty
@Stability(Stable)
public static final class CfnAutoScalingGroupPropsMixin.RetentionTriggersProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnAutoScalingGroupPropsMixin.RetentionTriggersProperty>
A builder for
CfnAutoScalingGroupPropsMixin.RetentionTriggersProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.terminateHookAbandon(String terminateHookAbandon)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
terminateHookAbandon
@Stability(Stable) public CfnAutoScalingGroupPropsMixin.RetentionTriggersProperty.Builder terminateHookAbandon(String terminateHookAbandon) - 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<CfnAutoScalingGroupPropsMixin.RetentionTriggersProperty>- Returns:
- a new instance of
CfnAutoScalingGroupPropsMixin.RetentionTriggersProperty - Throws:
NullPointerException- if any required attribute was not provided
-