@Stability(value=Stable)
public static interface CfnCluster.ManagedScalingPolicyProperty
extends software.amazon.jsii.JsiiSerializable
The policy specifies the limits for resources that can be added or terminated from a cluster. The policy only applies to the core and task nodes. The master node cannot be scaled after initial configuration.
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.*;
ManagedScalingPolicyProperty managedScalingPolicyProperty = ManagedScalingPolicyProperty.builder()
.computeLimits(ComputeLimitsProperty.builder()
.maximumCapacityUnits(123)
.minimumCapacityUnits(123)
.unitType("unitType")
// the properties below are optional
.maximumCoreCapacityUnits(123)
.maximumOnDemandCapacityUnits(123)
.build())
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnCluster.ManagedScalingPolicyProperty.Builder
A builder for
CfnCluster.ManagedScalingPolicyProperty |
static class |
CfnCluster.ManagedScalingPolicyProperty.Jsii$Proxy
An implementation for
CfnCluster.ManagedScalingPolicyProperty |
| Modifier and Type | Method and Description |
|---|---|
static CfnCluster.ManagedScalingPolicyProperty.Builder |
builder() |
default Object |
getComputeLimits()
The EC2 unit limits for a managed scaling policy.
|
@Stability(value=Stable) @Nullable default Object getComputeLimits()
The managed scaling activity of a cluster is not allowed to go above or below these limits. The limit only applies to the core and task nodes. The master node cannot be scaled after initial configuration.
@Stability(value=Stable) static CfnCluster.ManagedScalingPolicyProperty.Builder builder()
Copyright © 2022. All rights reserved.