Interface CfnInstanceGroupConfigPropsMixin.AutoScalingPolicyProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnInstanceGroupConfigPropsMixin.AutoScalingPolicyProperty.Jsii$Proxy
- Enclosing class:
CfnInstanceGroupConfigPropsMixin
@Stability(Stable)
public static interface CfnInstanceGroupConfigPropsMixin.AutoScalingPolicyProperty
extends software.amazon.jsii.JsiiSerializable
AutoScalingPolicy defines how an instance group dynamically adds and terminates EC2 instances in response to the value of a CloudWatch metric.
For more information, see Using Automatic Scaling in Amazon EMR in the Amazon EMR Management Guide .
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.cfnpropertymixins.services.emr.*;
AutoScalingPolicyProperty autoScalingPolicyProperty = AutoScalingPolicyProperty.builder()
.constraints(ScalingConstraintsProperty.builder()
.maxCapacity(123)
.minCapacity(123)
.build())
.rules(List.of(ScalingRuleProperty.builder()
.action(ScalingActionProperty.builder()
.market("market")
.simpleScalingPolicyConfiguration(SimpleScalingPolicyConfigurationProperty.builder()
.adjustmentType("adjustmentType")
.coolDown(123)
.scalingAdjustment(123)
.build())
.build())
.description("description")
.name("name")
.trigger(ScalingTriggerProperty.builder()
.cloudWatchAlarmDefinition(CloudWatchAlarmDefinitionProperty.builder()
.comparisonOperator("comparisonOperator")
.dimensions(List.of(MetricDimensionProperty.builder()
.key("key")
.value("value")
.build()))
.evaluationPeriods(123)
.metricName("metricName")
.namespace("namespace")
.period(123)
.statistic("statistic")
.threshold(123)
.unit("unit")
.build())
.build())
.build()))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classstatic final classAn implementation forCfnInstanceGroupConfigPropsMixin.AutoScalingPolicyProperty -
Method Summary
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getConstraints
The upper and lower Amazon EC2 instance limits for an automatic scaling policy.Automatic scaling activity will not cause an instance group to grow above or below these limits.
Returns union: either
IResolvableorCfnInstanceGroupConfigPropsMixin.ScalingConstraintsProperty- See Also:
-
getRules
The scale-in and scale-out rules that comprise the automatic scaling policy.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnInstanceGroupConfigPropsMixin.ScalingRuleProperty>- See Also:
-
builder
@Stability(Stable) static CfnInstanceGroupConfigPropsMixin.AutoScalingPolicyProperty.Builder builder()
-