public static interface CfnInstanceGroupConfig.ScalingTriggerProperty
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 |
CfnInstanceGroupConfig.ScalingTriggerProperty.Builder
A builder for
CfnInstanceGroupConfig.ScalingTriggerProperty |
static class |
CfnInstanceGroupConfig.ScalingTriggerProperty.Jsii$Proxy
An implementation for
CfnInstanceGroupConfig.ScalingTriggerProperty |
Modifier and Type | Method and Description |
---|---|
static CfnInstanceGroupConfig.ScalingTriggerProperty.Builder |
builder() |
java.lang.Object |
getCloudWatchAlarmDefinition()
The definition of a CloudWatch metric alarm.
|
java.lang.Object getCloudWatchAlarmDefinition()
When the defined alarm conditions are met along with other trigger parameters, scaling activity begins.
static CfnInstanceGroupConfig.ScalingTriggerProperty.Builder builder()