Interface EmrModifyInstanceGroupByName.IInstanceResizePolicyProperty
Custom policy for requesting termination protection or termination of specific instances when shrinking an instance group.
Namespace: Amazon.CDK.AWS.StepFunctions.Tasks
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface IInstanceResizePolicyProperty
Syntax (vb)
Public Interface IInstanceResizePolicyProperty
Remarks
See: https://docs.aws.amazon.com/emr/latest/APIReference/API_InstanceResizePolicy.html
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK;
using Amazon.CDK.AWS.StepFunctions.Tasks;
var instanceResizePolicyProperty = new InstanceResizePolicyProperty {
InstancesToProtect = new [] { "instancesToProtect" },
InstancesToTerminate = new [] { "instancesToTerminate" },
InstanceTerminationTimeout = Duration.Minutes(30)
};
Synopsis
Properties
InstancesToProtect | Specific list of instances to be protected when shrinking an instance group. |
InstancesToTerminate | Specific list of instances to be terminated when shrinking an instance group. |
InstanceTerminationTimeout | Decommissioning timeout override for the specific list of instances to be terminated. |
Properties
InstancesToProtect
Specific list of instances to be protected when shrinking an instance group.
virtual string[] InstancesToProtect { get; }
Property Value
System.String[]
Remarks
Default: - No instances will be protected when shrinking an instance group
InstancesToTerminate
Specific list of instances to be terminated when shrinking an instance group.
virtual string[] InstancesToTerminate { get; }
Property Value
System.String[]
Remarks
Default: - No instances will be terminated when shrinking an instance group.
InstanceTerminationTimeout
Decommissioning timeout override for the specific list of instances to be terminated.
virtual Duration InstanceTerminationTimeout { get; }
Property Value
Remarks
Default: cdk.Duration.seconds