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