Interface EmrCreateCluster.IAutoScalingPolicyProperty
An automatic scaling policy for a core instance group or task instance group in an Amazon EMR cluster.
Namespace: Amazon.CDK.AWS.StepFunctions.Tasks
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface IAutoScalingPolicyProperty
Syntax (vb)
Public Interface IAutoScalingPolicyProperty
Remarks
See: https://docs.aws.amazon.com/emr/latest/APIReference/API_AutoScalingPolicy.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 autoScalingPolicyProperty = new AutoScalingPolicyProperty {
Constraints = new ScalingConstraintsProperty {
MaxCapacity = 123,
MinCapacity = 123
},
Rules = new [] { new ScalingRuleProperty {
Action = new ScalingActionProperty {
SimpleScalingPolicyConfiguration = new SimpleScalingPolicyConfigurationProperty {
ScalingAdjustment = 123,
// the properties below are optional
AdjustmentType = EmrCreateCluster.ScalingAdjustmentType.CHANGE_IN_CAPACITY,
CoolDown = 123
},
// the properties below are optional
Market = EmrCreateCluster.InstanceMarket.ON_DEMAND
},
Name = "name",
Trigger = 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
}
},
// the properties below are optional
Description = "description"
} }
};
Synopsis
Properties
Constraints | The upper and lower EC2 instance limits for an automatic scaling policy. |
Rules | The scale-in and scale-out rules that comprise the automatic scaling policy. |
Properties
Constraints
The upper and lower EC2 instance limits for an automatic scaling policy.
EmrCreateCluster.IScalingConstraintsProperty Constraints { get; }
Property Value
EmrCreateCluster.IScalingConstraintsProperty
Remarks
Automatic scaling activity will not cause an instance group to grow above or below these limits.
Rules
The scale-in and scale-out rules that comprise the automatic scaling policy.
EmrCreateCluster.IScalingRuleProperty[] Rules { get; }
Property Value
EmrCreateCluster.IScalingRuleProperty[]