@Stability(value=Stable)
public static interface EmrCreateCluster.ScalingRuleProperty
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.*;
ScalingRuleProperty scalingRuleProperty = 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();
| Modifier and Type | Interface and Description |
|---|---|
static class |
EmrCreateCluster.ScalingRuleProperty.Builder
A builder for
EmrCreateCluster.ScalingRuleProperty |
static class |
EmrCreateCluster.ScalingRuleProperty.Jsii$Proxy
An implementation for
EmrCreateCluster.ScalingRuleProperty |
| Modifier and Type | Method and Description |
|---|---|
static EmrCreateCluster.ScalingRuleProperty.Builder |
builder() |
EmrCreateCluster.ScalingActionProperty |
getAction()
The conditions that trigger an automatic scaling activity.
|
default String |
getDescription()
A friendly, more verbose description of the automatic scaling rule.
|
String |
getName()
The name used to identify an automatic scaling rule.
|
EmrCreateCluster.ScalingTriggerProperty |
getTrigger()
The CloudWatch alarm definition that determines when automatic scaling activity is triggered.
|
@Stability(value=Stable) @NotNull EmrCreateCluster.ScalingActionProperty getAction()
@Stability(value=Stable) @NotNull String getName()
Rule names must be unique within a scaling policy.
@Stability(value=Stable) @NotNull EmrCreateCluster.ScalingTriggerProperty getTrigger()
@Stability(value=Stable) @Nullable default String getDescription()
Default: - None
@Stability(value=Stable) static EmrCreateCluster.ScalingRuleProperty.Builder builder()
Copyright © 2023. All rights reserved.