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