interface ScalingRuleProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.EMR.Mixins.CfnInstanceGroupConfigPropsMixin.ScalingRuleProperty |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awsemr/mixins#CfnInstanceGroupConfigPropsMixin_ScalingRuleProperty |
Java | software.amazon.awscdk.mixins.preview.services.emr.mixins.CfnInstanceGroupConfigPropsMixin.ScalingRuleProperty |
Python | aws_cdk.mixins_preview.aws_emr.mixins.CfnInstanceGroupConfigPropsMixin.ScalingRuleProperty |
TypeScript | @aws-cdk/mixins-preview » aws_emr » mixins » CfnInstanceGroupConfigPropsMixin » ScalingRuleProperty |
ScalingRule is a subproperty of the AutoScalingPolicy property type.
ScalingRule defines the scale-in or scale-out rules for scaling activity, including the CloudWatch metric alarm that triggers activity, how EC2 instances are added or removed, and the periodicity of adjustments. The automatic scaling policy for an instance group can comprise one or more automatic scaling rules.
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 scalingRuleProperty: emr_mixins.CfnInstanceGroupConfigPropsMixin.ScalingRuleProperty = {
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 |
|---|---|---|
| action? | IResolvable | Scaling | The conditions that trigger an automatic scaling activity. |
| description? | string | A friendly, more verbose description of the automatic scaling rule. |
| name? | string | The name used to identify an automatic scaling rule. |
| trigger? | IResolvable | Scaling | The CloudWatch alarm definition that determines when automatic scaling activity is triggered. |
action?
Type:
IResolvable | Scaling
(optional)
The conditions that trigger an automatic scaling activity.
description?
Type:
string
(optional)
A friendly, more verbose description of the automatic scaling rule.
name?
Type:
string
(optional)
The name used to identify an automatic scaling rule.
Rule names must be unique within a scaling policy.
trigger?
Type:
IResolvable | Scaling
(optional)
The CloudWatch alarm definition that determines when automatic scaling activity is triggered.

.NET
Go
Java
Python
TypeScript