interface AutoScalingPolicyProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.EMR.Mixins.CfnInstanceGroupConfigPropsMixin.AutoScalingPolicyProperty |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awsemr/mixins#CfnInstanceGroupConfigPropsMixin_AutoScalingPolicyProperty |
Java | software.amazon.awscdk.mixins.preview.services.emr.mixins.CfnInstanceGroupConfigPropsMixin.AutoScalingPolicyProperty |
Python | aws_cdk.mixins_preview.aws_emr.mixins.CfnInstanceGroupConfigPropsMixin.AutoScalingPolicyProperty |
TypeScript | @aws-cdk/mixins-preview » aws_emr » mixins » CfnInstanceGroupConfigPropsMixin » AutoScalingPolicyProperty |
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 { mixins as emr_mixins } from '@aws-cdk/mixins-preview/aws-emr';
const autoScalingPolicyProperty: emr_mixins.CfnInstanceGroupConfigPropsMixin.AutoScalingPolicyProperty = {
constraints: {
maxCapacity: 123,
minCapacity: 123,
},
rules: [{
action: {
market: 'market',
simpleScalingPolicyConfiguration: {
adjustmentType: 'adjustmentType',
coolDown: 123,
scalingAdjustment: 123,
},
},
description: 'description',
name: 'name',
trigger: {
cloudWatchAlarmDefinition: {
comparisonOperator: 'comparisonOperator',
dimensions: [{
key: 'key',
value: 'value',
}],
evaluationPeriods: 123,
metricName: 'metricName',
namespace: 'namespace',
period: 123,
statistic: 'statistic',
threshold: 123,
unit: 'unit',
},
},
}],
};
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
(optional)
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)[]
(optional)
The scale-in and scale-out rules that comprise the automatic scaling policy.

.NET
Go
Java
Python
TypeScript