Interface CfnCluster.ScalingTriggerProperty

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
CfnCluster.ScalingTriggerProperty.Jsii$Proxy
Enclosing class:
CfnCluster

@Stability(Stable) public static interface CfnCluster.ScalingTriggerProperty extends software.amazon.jsii.JsiiSerializable
ScalingTrigger is a subproperty of the ScalingRule property type.

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();