Interface CfnCluster.ComputeLimitsProperty

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
CfnCluster.ComputeLimitsProperty.Jsii$Proxy
Enclosing class:
CfnCluster

@Stability(Stable) public static interface CfnCluster.ComputeLimitsProperty extends software.amazon.jsii.JsiiSerializable
The Amazon EC2 unit limits for a managed scaling policy.

The managed scaling activity of a cluster can not be above or below these limits. The limit 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.*;
 ComputeLimitsProperty computeLimitsProperty = ComputeLimitsProperty.builder()
         .maximumCapacityUnits(123)
         .minimumCapacityUnits(123)
         .unitType("unitType")
         // the properties below are optional
         .maximumCoreCapacityUnits(123)
         .maximumOnDemandCapacityUnits(123)
         .build();
 
  • Method Details

    • getMaximumCapacityUnits

      @Stability(Stable) @NotNull Number getMaximumCapacityUnits()
      The upper boundary of Amazon EC2 units.

      It is measured through vCPU cores or instances for instance groups and measured through units for instance fleets. Managed scaling activities are not allowed beyond this boundary. The limit only applies to the core and task nodes. The master node cannot be scaled after initial configuration.

    • getMinimumCapacityUnits

      @Stability(Stable) @NotNull Number getMinimumCapacityUnits()
      The lower boundary of Amazon EC2 units.

      It is measured through vCPU cores or instances for instance groups and measured through units for instance fleets. Managed scaling activities are not allowed beyond this boundary. The limit only applies to the core and task nodes. The master node cannot be scaled after initial configuration.

    • getUnitType

      @Stability(Stable) @NotNull String getUnitType()
      The unit type used for specifying a managed scaling policy.
    • getMaximumCoreCapacityUnits

      @Stability(Stable) @Nullable default Number getMaximumCoreCapacityUnits()
      The upper boundary of Amazon EC2 units for core node type in a cluster.

      It is measured through vCPU cores or instances for instance groups and measured through units for instance fleets. The core units are not allowed to scale beyond this boundary. The parameter is used to split capacity allocation between core and task nodes.

    • getMaximumOnDemandCapacityUnits

      @Stability(Stable) @Nullable default Number getMaximumOnDemandCapacityUnits()
      The upper boundary of On-Demand Amazon EC2 units.

      It is measured through vCPU cores or instances for instance groups and measured through units for instance fleets. The On-Demand units are not allowed to scale beyond this boundary. The parameter is used to split capacity allocation between On-Demand and Spot Instances.

    • builder

      @Stability(Stable) static CfnCluster.ComputeLimitsProperty.Builder builder()
      Returns:
      a CfnCluster.ComputeLimitsProperty.Builder of CfnCluster.ComputeLimitsProperty