Class CfnCluster.ScalingTriggerProperty
ScalingTrigger is a subproperty of the ScalingRule property type.
Implements
Inherited Members
Namespace: Amazon.CDK.AWS.EMR
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnCluster.ScalingTriggerProperty : CfnCluster.IScalingTriggerProperty
Syntax (vb)
Public Class CfnCluster.ScalingTriggerProperty Implements CfnCluster.IScalingTriggerProperty
Remarks
ScalingTrigger determines the conditions that trigger an automatic scaling activity.
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.EMR;
var scalingTriggerProperty = new ScalingTriggerProperty {
CloudWatchAlarmDefinition = new CloudWatchAlarmDefinitionProperty {
ComparisonOperator = "comparisonOperator",
MetricName = "metricName",
Period = 123,
Threshold = 123,
// the properties below are optional
Dimensions = new [] { new MetricDimensionProperty {
Key = "key",
Value = "value"
} },
EvaluationPeriods = 123,
Namespace = "namespace",
Statistic = "statistic",
Unit = "unit"
}
};
Synopsis
Constructors
| ScalingTriggerProperty() |
|
Properties
| CloudWatchAlarmDefinition | The definition of a CloudWatch metric alarm. |
Constructors
ScalingTriggerProperty()
ScalingTrigger is a subproperty of the ScalingRule property type.
public ScalingTriggerProperty()
Remarks
ScalingTrigger determines the conditions that trigger an automatic scaling activity.
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.EMR;
var scalingTriggerProperty = new ScalingTriggerProperty {
CloudWatchAlarmDefinition = new CloudWatchAlarmDefinitionProperty {
ComparisonOperator = "comparisonOperator",
MetricName = "metricName",
Period = 123,
Threshold = 123,
// the properties below are optional
Dimensions = new [] { new MetricDimensionProperty {
Key = "key",
Value = "value"
} },
EvaluationPeriods = 123,
Namespace = "namespace",
Statistic = "statistic",
Unit = "unit"
}
};
Properties
CloudWatchAlarmDefinition
The definition of a CloudWatch metric alarm.
public object CloudWatchAlarmDefinition { get; set; }
Property Value
Remarks
When the defined alarm conditions are met along with other trigger parameters, scaling activity begins.
Type union: either IResolvable or CfnCluster.ICloudWatchAlarmDefinitionProperty