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.*;
 import software.amazon.awscdk.services.stepfunctions.tasks.*;
 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();
 

See Also: