Enum InstanceSize

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

@Generated(value="jsii-pacmak/1.97.0 (build 729de35)", date="2024-04-18T17:54:16.057Z") @Stability(Stable) public enum InstanceSize extends Enum<InstanceSize>
What size of instance to use.

Example:

 Vpc vpc;
 DatabaseCluster cluster = DatabaseCluster.Builder.create(this, "Database")
         .engine(DatabaseClusterEngine.auroraMysql(AuroraMysqlClusterEngineProps.builder().version(AuroraMysqlEngineVersion.VER_3_01_0).build()))
         .writer(ClusterInstance.provisioned("writer", ProvisionedClusterInstanceProps.builder()
                 .instanceType(InstanceType.of(InstanceClass.R6G, InstanceSize.XLARGE4))
                 .build()))
         .serverlessV2MinCapacity(6.5)
         .serverlessV2MaxCapacity(64)
         .readers(List.of(ClusterInstance.serverlessV2("reader1", ServerlessV2ClusterInstanceProps.builder().scaleWithWriter(true).build()), ClusterInstance.serverlessV2("reader2")))
         .vpc(vpc)
         .build();
 
  • Enum Constant Details

    • NANO

      @Stability(Stable) public static final InstanceSize NANO
      Instance size NANO (nano).
    • MICRO

      @Stability(Stable) public static final InstanceSize MICRO
      Instance size MICRO (micro).
    • SMALL

      @Stability(Stable) public static final InstanceSize SMALL
      Instance size SMALL (small).
    • MEDIUM

      @Stability(Stable) public static final InstanceSize MEDIUM
      Instance size MEDIUM (medium).
    • LARGE

      @Stability(Stable) public static final InstanceSize LARGE
      Instance size LARGE (large).
    • XLARGE

      @Stability(Stable) public static final InstanceSize XLARGE
      Instance size XLARGE (xlarge).
    • XLARGE2

      @Stability(Stable) public static final InstanceSize XLARGE2
      Instance size XLARGE2 (2xlarge).
    • XLARGE3

      @Stability(Stable) public static final InstanceSize XLARGE3
      Instance size XLARGE3 (3xlarge).
    • XLARGE4

      @Stability(Stable) public static final InstanceSize XLARGE4
      Instance size XLARGE4 (4xlarge).
    • XLARGE6

      @Stability(Stable) public static final InstanceSize XLARGE6
      Instance size XLARGE6 (6xlarge).
    • XLARGE8

      @Stability(Stable) public static final InstanceSize XLARGE8
      Instance size XLARGE8 (8xlarge).
    • XLARGE9

      @Stability(Stable) public static final InstanceSize XLARGE9
      Instance size XLARGE9 (9xlarge).
    • XLARGE10

      @Stability(Stable) public static final InstanceSize XLARGE10
      Instance size XLARGE10 (10xlarge).
    • XLARGE12

      @Stability(Stable) public static final InstanceSize XLARGE12
      Instance size XLARGE12 (12xlarge).
    • XLARGE16

      @Stability(Stable) public static final InstanceSize XLARGE16
      Instance size XLARGE16 (16xlarge).
    • XLARGE18

      @Stability(Stable) public static final InstanceSize XLARGE18
      Instance size XLARGE18 (18xlarge).
    • XLARGE24

      @Stability(Stable) public static final InstanceSize XLARGE24
      Instance size XLARGE24 (24xlarge).
    • XLARGE32

      @Stability(Stable) public static final InstanceSize XLARGE32
      Instance size XLARGE32 (32xlarge).
    • XLARGE48

      @Stability(Stable) public static final InstanceSize XLARGE48
      Instance size XLARGE48 (48xlarge).
    • XLARGE56

      @Stability(Stable) public static final InstanceSize XLARGE56
      Instance size XLARGE56 (56xlarge).
    • XLARGE96

      @Stability(Stable) public static final InstanceSize XLARGE96
      Instance size XLARGE96 (96xlarge).
    • XLARGE112

      @Stability(Stable) public static final InstanceSize XLARGE112
      Instance size XLARGE112 (112xlarge).
    • METAL

      @Stability(Stable) public static final InstanceSize METAL
      Instance size METAL (metal).
    • XLARGE16METAL

      @Stability(Stable) public static final InstanceSize XLARGE16METAL
      Instance size XLARGE16METAL (metal-16xl).
    • XLARGE24METAL

      @Stability(Stable) public static final InstanceSize XLARGE24METAL
      Instance size XLARGE24METAL (metal-24xl).
    • XLARGE32METAL

      @Stability(Stable) public static final InstanceSize XLARGE32METAL
      Instance size XLARGE32METAL (metal-32xl).
    • XLARGE48METAL

      @Stability(Stable) public static final InstanceSize XLARGE48METAL
      Instance size XLARGE48METAL (metal-48xl).
  • Method Details

    • values

      public static InstanceSize[] 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 InstanceSize 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