Class EmrCreateCluster.ScalingTriggerProperty
The conditions that trigger an automatic scaling activity and the definition of a CloudWatch metric alarm.
Inheritance
System.Object
EmrCreateCluster.ScalingTriggerProperty
Implements
Namespace: Amazon.CDK.AWS.StepFunctions.Tasks
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class ScalingTriggerProperty : Object, EmrCreateCluster.IScalingTriggerProperty
Syntax (vb)
Public Class ScalingTriggerProperty
Inherits Object
Implements EmrCreateCluster.IScalingTriggerProperty
Remarks
When the defined alarm conditions are met along with other trigger parameters, scaling activity begins.
See: https://docs.aws.amazon.com/emr/latest/APIReference/API_ScalingTrigger.html
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;
using Amazon.CDK.AWS.StepFunctions.Tasks;
var scalingTriggerProperty = new ScalingTriggerProperty {
CloudWatchAlarmDefinition = new CloudWatchAlarmDefinitionProperty {
ComparisonOperator = EmrCreateCluster.CloudWatchAlarmComparisonOperator.GREATER_THAN_OR_EQUAL,
MetricName = "metricName",
Period = Duration.Minutes(30),
// the properties below are optional
Dimensions = new [] { new MetricDimensionProperty {
Key = "key",
Value = "value"
} },
EvaluationPeriods = 123,
Namespace = "namespace",
Statistic = EmrCreateCluster.CloudWatchAlarmStatistic.SAMPLE_COUNT,
Threshold = 123,
Unit = EmrCreateCluster.CloudWatchAlarmUnit.NONE
}
};
Synopsis
Constructors
ScalingTriggerProperty() |
Properties
CloudWatchAlarmDefinition | The definition of a CloudWatch metric alarm. |
Constructors
ScalingTriggerProperty()
public ScalingTriggerProperty()
Properties
CloudWatchAlarmDefinition
The definition of a CloudWatch metric alarm.
public EmrCreateCluster.ICloudWatchAlarmDefinitionProperty CloudWatchAlarmDefinition { get; set; }
Property Value
EmrCreateCluster.ICloudWatchAlarmDefinitionProperty
Remarks
When the defined alarm conditions are met along with other trigger parameters, scaling activity begins.