@Stability(value=Stable)
public static interface EmrCreateCluster.AutoScalingPolicyProperty
extends software.amazon.jsii.JsiiSerializable
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.stepfunctions.tasks.*;
import software.amazon.awscdk.core.*;
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(EmrCreateCluster.getScalingAdjustmentType().CHANGE_IN_CAPACITY)
.coolDown(123)
.build())
// the properties below are optional
.market(EmrCreateCluster.getInstanceMarket().ON_DEMAND)
.build())
.name("name")
.trigger(ScalingTriggerProperty.builder()
.cloudWatchAlarmDefinition(CloudWatchAlarmDefinitionProperty.builder()
.comparisonOperator(EmrCreateCluster.getCloudWatchAlarmComparisonOperator().GREATER_THAN_OR_EQUAL)
.metricName("metricName")
.period(Duration.minutes(30))
// the properties below are optional
.dimensions(List.of(MetricDimensionProperty.builder()
.key("key")
.value("value")
.build()))
.evaluationPeriods(123)
.namespace("namespace")
.statistic(EmrCreateCluster.getCloudWatchAlarmStatistic().SAMPLE_COUNT)
.threshold(123)
.unit(EmrCreateCluster.getCloudWatchAlarmUnit().NONE)
.build())
.build())
// the properties below are optional
.description("description")
.build()))
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
EmrCreateCluster.AutoScalingPolicyProperty.Builder
A builder for
EmrCreateCluster.AutoScalingPolicyProperty |
static class |
EmrCreateCluster.AutoScalingPolicyProperty.Jsii$Proxy
An implementation for
EmrCreateCluster.AutoScalingPolicyProperty |
| Modifier and Type | Method and Description |
|---|---|
static EmrCreateCluster.AutoScalingPolicyProperty.Builder |
builder() |
EmrCreateCluster.ScalingConstraintsProperty |
getConstraints()
The upper and lower EC2 instance limits for an automatic scaling policy.
|
List<EmrCreateCluster.ScalingRuleProperty> |
getRules()
The scale-in and scale-out rules that comprise the automatic scaling policy.
|
@Stability(value=Stable) @NotNull EmrCreateCluster.ScalingConstraintsProperty getConstraints()
Automatic scaling activity will not cause an instance group to grow above or below these limits.
@Stability(value=Stable) @NotNull List<EmrCreateCluster.ScalingRuleProperty> getRules()
@Stability(value=Stable) static EmrCreateCluster.AutoScalingPolicyProperty.Builder builder()
Copyright © 2022. All rights reserved.