public static interface CfnInstanceGroupConfig.AutoScalingPolicyProperty
For more information, see Using Automatic Scaling in Amazon EMR in the Amazon EMR Management Guide .
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import software.amazon.awscdk.services.emr.*; AutoScalingPolicyProperty autoScalingPolicyProperty = AutoScalingPolicyProperty.builder() .constraints(ScalingConstraintsProperty.builder() .maxCapacity(123) .minCapacity(123) .build()) .rules(List.of(ScalingRuleProperty.builder() .action(ScalingActionProperty.builder() .simpleScalingPolicyConfiguration(SimpleScalingPolicyConfigurationProperty.builder() .scalingAdjustment(123) // the properties below are optional .adjustmentType("adjustmentType") .coolDown(123) .build()) // the properties below are optional .market("market") .build()) .name("name") .trigger(ScalingTriggerProperty.builder() .cloudWatchAlarmDefinition(CloudWatchAlarmDefinitionProperty.builder() .comparisonOperator("comparisonOperator") .metricName("metricName") .period(123) .threshold(123) // the properties below are optional .dimensions(List.of(MetricDimensionProperty.builder() .key("key") .value("value") .build())) .evaluationPeriods(123) .namespace("namespace") .statistic("statistic") .unit("unit") .build()) .build()) // the properties below are optional .description("description") .build())) .build();
Modifier and Type | Interface and Description |
---|---|
static class |
CfnInstanceGroupConfig.AutoScalingPolicyProperty.Builder
A builder for
CfnInstanceGroupConfig.AutoScalingPolicyProperty |
static class |
CfnInstanceGroupConfig.AutoScalingPolicyProperty.Jsii$Proxy
An implementation for
CfnInstanceGroupConfig.AutoScalingPolicyProperty |
Modifier and Type | Method and Description |
---|---|
static CfnInstanceGroupConfig.AutoScalingPolicyProperty.Builder |
builder() |
java.lang.Object |
getConstraints()
The upper and lower EC2 instance limits for an automatic scaling policy.
|
java.lang.Object |
getRules()
The scale-in and scale-out rules that comprise the automatic scaling policy.
|
java.lang.Object getConstraints()
Automatic scaling activity will not cause an instance group to grow above or below these limits.
java.lang.Object getRules()
static CfnInstanceGroupConfig.AutoScalingPolicyProperty.Builder builder()