@Stability(value=Stable)
public static interface CfnCluster.ScalingTriggerProperty
extends software.amazon.jsii.JsiiSerializable
ScalingTrigger determines the conditions that trigger an automatic scaling activity.
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.*;
ScalingTriggerProperty scalingTriggerProperty = 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();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnCluster.ScalingTriggerProperty.Builder
A builder for
CfnCluster.ScalingTriggerProperty |
static class |
CfnCluster.ScalingTriggerProperty.Jsii$Proxy
An implementation for
CfnCluster.ScalingTriggerProperty |
| Modifier and Type | Method and Description |
|---|---|
static CfnCluster.ScalingTriggerProperty.Builder |
builder() |
Object |
getCloudWatchAlarmDefinition()
The definition of a CloudWatch metric alarm.
|
@Stability(value=Stable) @NotNull Object getCloudWatchAlarmDefinition()
When the defined alarm conditions are met along with other trigger parameters, scaling activity begins.
@Stability(value=Stable) static CfnCluster.ScalingTriggerProperty.Builder builder()
Copyright © 2022. All rights reserved.