interface ScalingTriggerProperty
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.EMR.CfnCluster.ScalingTriggerProperty |
Java | software.amazon.awscdk.services.emr.CfnCluster.ScalingTriggerProperty |
Python | aws_cdk.aws_emr.CfnCluster.ScalingTriggerProperty |
TypeScript | @aws-cdk/aws-emr » CfnCluster » ScalingTriggerProperty |
ScalingTrigger
is a subproperty of the ScalingRule
property type.
ScalingTrigger
determines the conditions that trigger an automatic scaling activity.
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 scalingTriggerProperty: emr.CfnCluster.ScalingTriggerProperty = {
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',
},
};
Properties
Name | Type | Description |
---|---|---|
cloud | IResolvable | Cloud | The definition of a CloudWatch metric alarm. |
cloudWatchAlarmDefinition
Type:
IResolvable
|
Cloud
The definition of a CloudWatch metric alarm.
When the defined alarm conditions are met along with other trigger parameters, scaling activity begins.