Interface EmrCreateCluster.ScalingTriggerProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
EmrCreateCluster.ScalingTriggerProperty.Jsii$Proxy
- Enclosing class:
- EmrCreateCluster
@Stability(Stable)
public static interface EmrCreateCluster.ScalingTriggerProperty
extends software.amazon.jsii.JsiiSerializable
The conditions that trigger an automatic scaling activity and the definition of a CloudWatch metric alarm.
When the defined alarm conditions are met along with other trigger parameters, scaling activity begins.
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.*;
ScalingTriggerProperty scalingTriggerProperty = 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();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forEmrCreateCluster.ScalingTriggerPropertystatic final classAn implementation forEmrCreateCluster.ScalingTriggerProperty -
Method Summary
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getCloudWatchAlarmDefinition
@Stability(Stable) @NotNull EmrCreateCluster.CloudWatchAlarmDefinitionProperty getCloudWatchAlarmDefinition()The definition of a CloudWatch metric alarm.When the defined alarm conditions are met along with other trigger parameters, scaling activity begins.
-
builder
-