interface AutoScalingPolicyProperty
| Language | Type name | 
|---|---|
  .NET | Amazon.CDK.AWS.EMR.CfnCluster.AutoScalingPolicyProperty | 
  Java | software.amazon.awscdk.services.emr.CfnCluster.AutoScalingPolicyProperty | 
  Python | aws_cdk.aws_emr.CfnCluster.AutoScalingPolicyProperty | 
  TypeScript  | @aws-cdk/aws-emr » CfnCluster » AutoScalingPolicyProperty | 
AutoScalingPolicy is a subproperty of InstanceGroupConfig .
AutoScalingPolicy defines how an instance group dynamically adds and terminates EC2 instances in response to the value of a CloudWatch metric. For more information, see Using Automatic Scaling in Amazon EMR in the Amazon EMR Management Guide .
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as emr from '@aws-cdk/aws-emr';
const autoScalingPolicyProperty: emr.CfnCluster.AutoScalingPolicyProperty = {
  constraints: {
    maxCapacity: 123,
    minCapacity: 123,
  },
  rules: [{
    action: {
      simpleScalingPolicyConfiguration: {
        scalingAdjustment: 123,
        // the properties below are optional
        adjustmentType: 'adjustmentType',
        coolDown: 123,
      },
      // the properties below are optional
      market: 'market',
    },
    name: 'name',
    trigger: {
      cloudWatchAlarmDefinition: {
        comparisonOperator: 'comparisonOperator',
        metricName: 'metricName',
        period: 123,
        threshold: 123,
        // the properties below are optional
        dimensions: [{
          key: 'key',
          value: 'value',
        }],
        evaluationPeriods: 123,
        namespace: 'namespace',
        statistic: 'statistic',
        unit: 'unit',
      },
    },
    // the properties below are optional
    description: 'description',
  }],
};
Properties
| Name | Type | Description | 
|---|---|---|
| constraints | IResolvable | Scaling | The upper and lower Amazon EC2 instance limits for an automatic scaling policy. | 
| rules | IResolvable | IResolvable | Scaling[] | The scale-in and scale-out rules that comprise the automatic scaling policy. | 
constraints
Type:
IResolvable | Scaling
The upper and lower Amazon EC2 instance limits for an automatic scaling policy.
Automatic scaling activity will not cause an instance group to grow above or below these limits.
rules
Type:
IResolvable | IResolvable | Scaling[]
The scale-in and scale-out rules that comprise the automatic scaling policy.

 .NET
 Java
 Python
 TypeScript