Interface EmrCreateCluster.ScalingActionProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
EmrCreateCluster.ScalingActionProperty.Jsii$Proxy
- Enclosing class:
EmrCreateCluster
@Stability(Stable)
public static interface EmrCreateCluster.ScalingActionProperty
extends software.amazon.jsii.JsiiSerializable
The type of adjustment the automatic scaling activity makes when triggered, and the periodicity of the adjustment.
And an automatic scaling configuration, which describes how the policy adds or removes instances, the cooldown period, and the number of EC2 instances that will be added each time the CloudWatch metric alarm condition is satisfied.
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.*; ScalingActionProperty scalingActionProperty = ScalingActionProperty.builder() .simpleScalingPolicyConfiguration(SimpleScalingPolicyConfigurationProperty.builder() .scalingAdjustment(123) // the properties below are optional .adjustmentType(EmrCreateCluster.getScalingAdjustmentType().CHANGE_IN_CAPACITY) .coolDown(123) .build()) // the properties below are optional .market(EmrCreateCluster.getInstanceMarket().ON_DEMAND) .build();
- See Also:
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forEmrCreateCluster.ScalingActionProperty
static final class
An implementation forEmrCreateCluster.ScalingActionProperty
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
default EmrCreateCluster.InstanceMarket
Not available for instance groups.The type of adjustment the automatic scaling activity makes when triggered, and the periodicity of the adjustment.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getSimpleScalingPolicyConfiguration
@Stability(Stable) @NotNull EmrCreateCluster.SimpleScalingPolicyConfigurationProperty getSimpleScalingPolicyConfiguration()The type of adjustment the automatic scaling activity makes when triggered, and the periodicity of the adjustment. -
getMarket
Not available for instance groups.Instance groups use the market type specified for the group.
Default: - EMR selected default
-
builder
-