Interface EmrCreateCluster.ManagedScalingComputeLimitsProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
EmrCreateCluster.ManagedScalingComputeLimitsProperty.Jsii$Proxy
- Enclosing class:
EmrCreateCluster
@Stability(Stable)
public static interface EmrCreateCluster.ManagedScalingComputeLimitsProperty
extends software.amazon.jsii.JsiiSerializable
The EC2 unit limits for a managed scaling policy.
Example:
EmrCreateCluster.Builder.create(this, "CreateCluster")
.instances(InstancesConfigProperty.builder()
.instanceFleets(List.of(InstanceFleetConfigProperty.builder()
.instanceFleetType(EmrCreateCluster.getInstanceRoleType().CORE)
.instanceTypeConfigs(List.of(InstanceTypeConfigProperty.builder()
.instanceType("m5.xlarge")
.build()))
.targetOnDemandCapacity(1)
.build(), InstanceFleetConfigProperty.builder()
.instanceFleetType(EmrCreateCluster.getInstanceRoleType().MASTER)
.instanceTypeConfigs(List.of(InstanceTypeConfigProperty.builder()
.instanceType("m5.xlarge")
.build()))
.targetOnDemandCapacity(1)
.build()))
.build())
.name("ClusterName")
.releaseLabel("emr-7.9.0")
.managedScalingPolicy(ManagedScalingPolicyProperty.builder()
.computeLimits(ManagedScalingComputeLimitsProperty.builder()
.unitType(EmrCreateCluster.getComputeLimitsUnitType().INSTANCE_FLEET_UNITS)
.maximumCapacityUnits(4)
.minimumCapacityUnits(1)
.maximumOnDemandCapacityUnits(4)
.maximumCoreCapacityUnits(2)
.build())
.build())
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forEmrCreateCluster.ManagedScalingComputeLimitsPropertystatic final classAn implementation forEmrCreateCluster.ManagedScalingComputeLimitsProperty -
Method Summary
Modifier and TypeMethodDescriptionbuilder()The upper boundary of Amazon EC2 units.default NumberThe upper boundary of Amazon EC2 units for core node type in a cluster.default NumberThe upper boundary of On-Demand Amazon EC2 units.The lower boundary of Amazon EC2 units.The unit type used for specifying a managed scaling policy.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getMaximumCapacityUnits
The upper boundary of Amazon EC2 units. -
getMinimumCapacityUnits
The lower boundary of Amazon EC2 units. -
getUnitType
The unit type used for specifying a managed scaling policy. -
getMaximumCoreCapacityUnits
The upper boundary of Amazon EC2 units for core node type in a cluster.Default: - None
-
getMaximumOnDemandCapacityUnits
The upper boundary of On-Demand Amazon EC2 units.Default: - None
-
builder
-