Interface EmrModifyInstanceGroupByName.InstanceResizePolicyProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
EmrModifyInstanceGroupByName.InstanceResizePolicyProperty.Jsii$Proxy
- Enclosing class:
EmrModifyInstanceGroupByName
@Stability(Stable)
public static interface EmrModifyInstanceGroupByName.InstanceResizePolicyProperty
extends software.amazon.jsii.JsiiSerializable
Custom policy for requesting termination protection or termination of specific instances when shrinking an instance group.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.stepfunctions.tasks.*;
import software.amazon.awscdk.core.*;
InstanceResizePolicyProperty instanceResizePolicyProperty = InstanceResizePolicyProperty.builder()
.instancesToProtect(List.of("instancesToProtect"))
.instancesToTerminate(List.of("instancesToTerminate"))
.instanceTerminationTimeout(Duration.minutes(30))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classstatic final classAn implementation forEmrModifyInstanceGroupByName.InstanceResizePolicyProperty -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Specific list of instances to be protected when shrinking an instance group.Specific list of instances to be terminated when shrinking an instance group.default software.amazon.awscdk.core.DurationDecommissioning timeout override for the specific list of instances to be terminated.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getInstancesToProtect
Specific list of instances to be protected when shrinking an instance group.Default: - No instances will be protected when shrinking an instance group
-
getInstancesToTerminate
Specific list of instances to be terminated when shrinking an instance group.Default: - No instances will be terminated when shrinking an instance group.
-
getInstanceTerminationTimeout
@Stability(Stable) @Nullable default software.amazon.awscdk.core.Duration getInstanceTerminationTimeout()Decommissioning timeout override for the specific list of instances to be terminated.Default: cdk.Duration.seconds
-
builder
@Stability(Stable) static EmrModifyInstanceGroupByName.InstanceResizePolicyProperty.Builder builder()
-