aws-cdk-lib.aws_emr.CfnInstanceGroupConfig.ScalingConstraintsProperty

interface ScalingConstraintsProperty

LanguageType name
.NETAmazon.CDK.AWS.EMR.CfnInstanceGroupConfig.ScalingConstraintsProperty
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsemr#CfnInstanceGroupConfig_ScalingConstraintsProperty
Javasoftware.amazon.awscdk.services.emr.CfnInstanceGroupConfig.ScalingConstraintsProperty
Pythonaws_cdk.aws_emr.CfnInstanceGroupConfig.ScalingConstraintsProperty
TypeScript aws-cdk-lib » aws_emr » CfnInstanceGroupConfig » ScalingConstraintsProperty

ScalingConstraints is a subproperty of the AutoScalingPolicy property type.

ScalingConstraints defines the upper and lower EC2 instance limits for an automatic scaling policy. Automatic scaling activities triggered by automatic scaling rules will not cause an instance group to grow above or shrink below these limits.

Example

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_emr as emr } from 'aws-cdk-lib';
const scalingConstraintsProperty: emr.CfnInstanceGroupConfig.ScalingConstraintsProperty = {
  maxCapacity: 123,
  minCapacity: 123,
};

Properties

NameTypeDescription
maxCapacitynumberThe upper boundary of Amazon EC2 instances in an instance group beyond which scaling activities are not allowed to grow.
minCapacitynumberThe lower boundary of Amazon EC2 instances in an instance group below which scaling activities are not allowed to shrink.

maxCapacity

Type: number

The upper boundary of Amazon EC2 instances in an instance group beyond which scaling activities are not allowed to grow.

Scale-out activities will not add instances beyond this boundary.


minCapacity

Type: number

The lower boundary of Amazon EC2 instances in an instance group below which scaling activities are not allowed to shrink.

Scale-in activities will not terminate instances below this boundary.