Class EmrCreateCluster.AutoScalingPolicyProperty
An automatic scaling policy for a core instance group or task instance group in an Amazon EMR cluster.
Inheritance
System.Object
EmrCreateCluster.AutoScalingPolicyProperty
Implements
Namespace: Amazon.CDK.AWS.StepFunctions.Tasks
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class AutoScalingPolicyProperty : Object, EmrCreateCluster.IAutoScalingPolicyProperty
Syntax (vb)
Public Class AutoScalingPolicyProperty
Inherits Object
Implements EmrCreateCluster.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
Constructors
AutoScalingPolicyProperty() |
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. |
Constructors
AutoScalingPolicyProperty()
public AutoScalingPolicyProperty()
Properties
Constraints
The upper and lower EC2 instance limits for an automatic scaling policy.
public EmrCreateCluster.IScalingConstraintsProperty Constraints { get; set; }
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.
public EmrCreateCluster.IScalingRuleProperty[] Rules { get; set; }
Property Value
EmrCreateCluster.IScalingRuleProperty[]