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.84.0 (build 5404dcf)", date="2023-06-19T16:30:39.407Z") @Stability(Stable) public enum InstanceSize extends Enum<InstanceSize>
What size of instance to use.

Example:

 Vpc vpc;
 DatabaseInstance sourceInstance;
 DatabaseInstanceFromSnapshot.Builder.create(this, "Instance")
         .snapshotIdentifier("my-snapshot")
         .engine(DatabaseInstanceEngine.postgres(PostgresInstanceEngineProps.builder().version(PostgresEngineVersion.VER_12_3).build()))
         // optional, defaults to m5.large
         .instanceType(InstanceType.of(InstanceClass.BURSTABLE2, InstanceSize.LARGE))
         .vpc(vpc)
         .build();
 DatabaseInstanceReadReplica.Builder.create(this, "ReadReplica")
         .sourceDatabaseInstance(sourceInstance)
         .instanceType(InstanceType.of(InstanceClass.BURSTABLE2, InstanceSize.LARGE))
         .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).
    • XLARGE112

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

      @Stability(Stable) public static final InstanceSize METAL
      Instance size METAL (metal).
  • 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