Class EmrModifyInstanceGroupByName.InstanceResizePolicyProperty
Custom policy for requesting termination protection or termination of specific instances when shrinking an instance group.
Inheritance
Namespace: Amazon.CDK.AWS.StepFunctions.Tasks
Assembly: Amazon.CDK.AWS.StepFunctions.Tasks.dll
Syntax (csharp)
public class InstanceResizePolicyProperty : Object, EmrModifyInstanceGroupByName.IInstanceResizePolicyProperty
Syntax (vb)
Public Class InstanceResizePolicyProperty
Inherits Object
Implements EmrModifyInstanceGroupByName.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.AWS.StepFunctions.Tasks;
using Amazon.CDK;
var instanceResizePolicyProperty = new InstanceResizePolicyProperty {
InstancesToProtect = new [] { "instancesToProtect" },
InstancesToTerminate = new [] { "instancesToTerminate" },
InstanceTerminationTimeout = Duration.Minutes(30)
};
Synopsis
Constructors
InstanceResizePolicyProperty() |
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. |
Constructors
InstanceResizePolicyProperty()
public InstanceResizePolicyProperty()
Properties
InstancesToProtect
Specific list of instances to be protected when shrinking an instance group.
public string[] InstancesToProtect { get; set; }
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.
public string[] InstancesToTerminate { get; set; }
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.
public Duration InstanceTerminationTimeout { get; set; }
Property Value
Remarks
Default: cdk.Duration.seconds