aws-cdk-lib.aws_stepfunctions_tasks.EmrModifyInstanceGroupByName.InstanceResizePolicyProperty

interface InstanceResizePolicyProperty

LanguageType name
.NETAmazon.CDK.AWS.StepFunctions.Tasks.EmrModifyInstanceGroupByName.InstanceResizePolicyProperty
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsstepfunctionstasks#EmrModifyInstanceGroupByName_InstanceResizePolicyProperty
Javasoftware.amazon.awscdk.services.stepfunctions.tasks.EmrModifyInstanceGroupByName.InstanceResizePolicyProperty
Pythonaws_cdk.aws_stepfunctions_tasks.EmrModifyInstanceGroupByName.InstanceResizePolicyProperty
TypeScript (source)aws-cdk-lib » aws_stepfunctions_tasks » EmrModifyInstanceGroupByName » InstanceResizePolicyProperty

Custom policy for requesting termination protection or termination of specific instances when shrinking an instance group.

See also: https://docs.aws.amazon.com/emr/latest/APIReference/API_InstanceResizePolicy.html

Example

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as cdk from 'aws-cdk-lib';
import { aws_stepfunctions_tasks as stepfunctions_tasks } from 'aws-cdk-lib';
const instanceResizePolicyProperty: stepfunctions_tasks.EmrModifyInstanceGroupByName.InstanceResizePolicyProperty = {
  instancesToProtect: ['instancesToProtect'],
  instancesToTerminate: ['instancesToTerminate'],
  instanceTerminationTimeout: cdk.Duration.minutes(30),
};

Properties

NameTypeDescription
instanceTerminationTimeout?DurationDecommissioning timeout override for the specific list of instances to be terminated.
instancesToProtect?string[]Specific list of instances to be protected when shrinking an instance group.
instancesToTerminate?string[]Specific list of instances to be terminated when shrinking an instance group.

instanceTerminationTimeout?

Type: Duration (optional, default: cdk.Duration.seconds)

Decommissioning timeout override for the specific list of instances to be terminated.


instancesToProtect?

Type: string[] (optional, default: No instances will be protected when shrinking an instance group)

Specific list of instances to be protected when shrinking an instance group.


instancesToTerminate?

Type: string[] (optional, default: No instances will be terminated when shrinking an instance group.)

Specific list of instances to be terminated when shrinking an instance group.