Class CfnInstanceGroupConfig.ScalingTriggerProperty
ScalingTrigger
is a subproperty of the ScalingRule
property type.
Inheritance
System.Object
CfnInstanceGroupConfig.ScalingTriggerProperty
Namespace: Amazon.CDK.AWS.EMR
Assembly: Amazon.CDK.AWS.EMR.dll
Syntax (csharp)
public class ScalingTriggerProperty : Object, CfnInstanceGroupConfig.IScalingTriggerProperty
Syntax (vb)
Public Class ScalingTriggerProperty
Inherits Object
Implements CfnInstanceGroupConfig.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
Scaling |
Properties
Cloud |
The definition of a CloudWatch metric alarm. |
Constructors
ScalingTriggerProperty()
public ScalingTriggerProperty()
Properties
CloudWatchAlarmDefinition
The definition of a CloudWatch metric alarm.
public object CloudWatchAlarmDefinition { get; set; }
Property Value
System.
Remarks
When the defined alarm conditions are met along with other trigger parameters, scaling activity begins.