Enum 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();
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionInstance size LARGE (large).Instance size MEDIUM (medium).Instance size METAL (metal).Instance size MICRO (micro).Instance size NANO (nano).Instance size SMALL (small).Instance size XLARGE (xlarge).Instance size XLARGE10 (10xlarge).Instance size XLARGE56 (112xlarge).Instance size XLARGE12 (12xlarge).Instance size XLARGE16 (16xlarge).Instance size XLARGE18 (18xlarge).Instance size XLARGE2 (2xlarge).Instance size XLARGE24 (24xlarge).Instance size XLARGE3 (3xlarge).Instance size XLARGE32 (32xlarge).Instance size XLARGE4 (4xlarge).Instance size XLARGE48 (48xlarge).Instance size XLARGE56 (56xlarge).Instance size XLARGE6 (6xlarge).Instance size XLARGE8 (8xlarge).Instance size XLARGE9 (9xlarge). -
Method Summary
Modifier and TypeMethodDescriptionstatic InstanceSize
Returns the enum constant of this type with the specified name.static InstanceSize[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
NANO
Instance size NANO (nano). -
MICRO
Instance size MICRO (micro). -
SMALL
Instance size SMALL (small). -
MEDIUM
Instance size MEDIUM (medium). -
LARGE
Instance size LARGE (large). -
XLARGE
Instance size XLARGE (xlarge). -
XLARGE2
Instance size XLARGE2 (2xlarge). -
XLARGE3
Instance size XLARGE3 (3xlarge). -
XLARGE4
Instance size XLARGE4 (4xlarge). -
XLARGE6
Instance size XLARGE6 (6xlarge). -
XLARGE8
Instance size XLARGE8 (8xlarge). -
XLARGE9
Instance size XLARGE9 (9xlarge). -
XLARGE10
Instance size XLARGE10 (10xlarge). -
XLARGE12
Instance size XLARGE12 (12xlarge). -
XLARGE16
Instance size XLARGE16 (16xlarge). -
XLARGE18
Instance size XLARGE18 (18xlarge). -
XLARGE24
Instance size XLARGE24 (24xlarge). -
XLARGE32
Instance size XLARGE32 (32xlarge). -
XLARGE48
Instance size XLARGE48 (48xlarge). -
XLARGE56
Instance size XLARGE56 (56xlarge). -
XLARGE112
Instance size XLARGE56 (112xlarge). -
METAL
Instance size METAL (metal).
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-