Interface EmrModifyInstanceGroupByName.ShrinkPolicyProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
EmrModifyInstanceGroupByName.ShrinkPolicyProperty.Jsii$Proxy
- Enclosing class:
EmrModifyInstanceGroupByName
@Stability(Stable)
public static interface EmrModifyInstanceGroupByName.ShrinkPolicyProperty
extends software.amazon.jsii.JsiiSerializable
Policy for customizing shrink operations.
Allows configuration of decommissioning timeout and targeted instance shrinking.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import software.amazon.awscdk.*; import software.amazon.awscdk.services.stepfunctions.tasks.*; ShrinkPolicyProperty shrinkPolicyProperty = ShrinkPolicyProperty.builder() .decommissionTimeout(Duration.minutes(30)) .instanceResizePolicy(InstanceResizePolicyProperty.builder() .instancesToProtect(List.of("instancesToProtect")) .instancesToTerminate(List.of("instancesToTerminate")) .instanceTerminationTimeout(Duration.minutes(30)) .build()) .build();
- See Also:
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forEmrModifyInstanceGroupByName.ShrinkPolicyProperty
static final class
An implementation forEmrModifyInstanceGroupByName.ShrinkPolicyProperty
-
Method Summary
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getDecommissionTimeout
The desired timeout for decommissioning an instance.Overrides the default YARN decommissioning timeout.
Default: - EMR selected default
-
getInstanceResizePolicy
@Stability(Stable) @Nullable default EmrModifyInstanceGroupByName.InstanceResizePolicyProperty getInstanceResizePolicy()Custom policy for requesting termination protection or termination of specific instances when shrinking an instance group.Default: - None
-
builder
-