interface ScalingConstraintsProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.EMR.Mixins.CfnInstanceGroupConfigPropsMixin.ScalingConstraintsProperty |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awsemr/mixins#CfnInstanceGroupConfigPropsMixin_ScalingConstraintsProperty |
Java | software.amazon.awscdk.mixins.preview.services.emr.mixins.CfnInstanceGroupConfigPropsMixin.ScalingConstraintsProperty |
Python | aws_cdk.mixins_preview.aws_emr.mixins.CfnInstanceGroupConfigPropsMixin.ScalingConstraintsProperty |
TypeScript | @aws-cdk/mixins-preview » aws_emr » mixins » CfnInstanceGroupConfigPropsMixin » 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 { mixins as emr_mixins } from '@aws-cdk/mixins-preview/aws-emr';
const scalingConstraintsProperty: emr_mixins.CfnInstanceGroupConfigPropsMixin.ScalingConstraintsProperty = {
maxCapacity: 123,
minCapacity: 123,
};
Properties
| Name | Type | Description |
|---|---|---|
| max | number | The upper boundary of Amazon EC2 instances in an instance group beyond which scaling activities are not allowed to grow. |
| min | number | The lower boundary of Amazon EC2 instances in an instance group below which scaling activities are not allowed to shrink. |
maxCapacity?
Type:
number
(optional)
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
(optional)
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.

.NET
Go
Java
Python
TypeScript