@Stability(value=Stable)
public static interface CfnInstanceGroupConfig.ScalingRuleProperty
extends software.amazon.jsii.JsiiSerializable
// 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.*;
ScalingRuleProperty scalingRuleProperty = 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();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnInstanceGroupConfig.ScalingRuleProperty.Builder
A builder for
CfnInstanceGroupConfig.ScalingRuleProperty |
static class |
CfnInstanceGroupConfig.ScalingRuleProperty.Jsii$Proxy
An implementation for
CfnInstanceGroupConfig.ScalingRuleProperty |
| Modifier and Type | Method and Description |
|---|---|
static CfnInstanceGroupConfig.ScalingRuleProperty.Builder |
builder() |
Object |
getAction()
`CfnInstanceGroupConfig.ScalingRuleProperty.Action`.
|
default String |
getDescription()
`CfnInstanceGroupConfig.ScalingRuleProperty.Description`.
|
String |
getName()
`CfnInstanceGroupConfig.ScalingRuleProperty.Name`.
|
Object |
getTrigger()
`CfnInstanceGroupConfig.ScalingRuleProperty.Trigger`.
|
@Stability(value=Stable) @NotNull Object getAction()
@Stability(value=Stable) @Nullable default String getDescription()
@Stability(value=Stable) @NotNull String getName()
@Stability(value=Stable) @NotNull Object getTrigger()
@Stability(value=Stable) static CfnInstanceGroupConfig.ScalingRuleProperty.Builder builder()
Copyright © 2021. All rights reserved.