Enum AuroraCapacityUnit

java.lang.Object
java.lang.Enum<AuroraCapacityUnit>
software.amazon.awscdk.services.rds.AuroraCapacityUnit
All Implemented Interfaces:
Serializable, Comparable<AuroraCapacityUnit>, java.lang.constant.Constable

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:30:48.881Z") @Stability(Stable) public enum AuroraCapacityUnit extends Enum<AuroraCapacityUnit>
Aurora capacity units (ACUs).

Each ACU is a combination of processing and memory capacity.

Example:

 Vpc vpc;
 ServerlessCluster cluster = ServerlessCluster.Builder.create(this, "AnotherCluster")
         .engine(DatabaseClusterEngine.AURORA_POSTGRESQL)
         .parameterGroup(ParameterGroup.fromParameterGroupName(this, "ParameterGroup", "default.aurora-postgresql10"))
         .vpc(vpc)
         .scaling(ServerlessScalingOptions.builder()
                 .autoPause(Duration.minutes(10)) // default is to pause after 5 minutes of idle time
                 .minCapacity(AuroraCapacityUnit.ACU_8) // default is 2 Aurora capacity units (ACUs)
                 .maxCapacity(AuroraCapacityUnit.ACU_32)
                 .build())
         .build();
 

See Also:
  • Enum Constant Details

    • ACU_1

      @Stability(Stable) public static final AuroraCapacityUnit ACU_1
      1 Aurora Capacity Unit.
    • ACU_2

      @Stability(Stable) public static final AuroraCapacityUnit ACU_2
      2 Aurora Capacity Units.
    • ACU_4

      @Stability(Stable) public static final AuroraCapacityUnit ACU_4
      4 Aurora Capacity Units.
    • ACU_8

      @Stability(Stable) public static final AuroraCapacityUnit ACU_8
      8 Aurora Capacity Units.
    • ACU_16

      @Stability(Stable) public static final AuroraCapacityUnit ACU_16
      16 Aurora Capacity Units.
    • ACU_32

      @Stability(Stable) public static final AuroraCapacityUnit ACU_32
      32 Aurora Capacity Units.
    • ACU_64

      @Stability(Stable) public static final AuroraCapacityUnit ACU_64
      64 Aurora Capacity Units.
    • ACU_128

      @Stability(Stable) public static final AuroraCapacityUnit ACU_128
      128 Aurora Capacity Units.
    • ACU_192

      @Stability(Stable) public static final AuroraCapacityUnit ACU_192
      192 Aurora Capacity Units.
    • ACU_256

      @Stability(Stable) public static final AuroraCapacityUnit ACU_256
      256 Aurora Capacity Units.
    • ACU_384

      @Stability(Stable) public static final AuroraCapacityUnit ACU_384
      384 Aurora Capacity Units.
  • Method Details

    • values

      public static AuroraCapacityUnit[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static AuroraCapacityUnit valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null