Enum StorageType
- All Implemented Interfaces:
Serializable
,Comparable<StorageType>
,java.lang.constant.Constable
@Generated(value="jsii-pacmak/1.103.1 (build bef2dea)",
date="2024-10-05T03:43:50.160Z")
@Stability(Stable)
public enum StorageType
extends Enum<StorageType>
The type of storage.
Example:
Vpc vpc; DatabaseInstance iopsInstance = DatabaseInstance.Builder.create(this, "IopsInstance") .engine(DatabaseInstanceEngine.mysql(MySqlInstanceEngineProps.builder().version(MysqlEngineVersion.VER_8_0_30).build())) .vpc(vpc) .storageType(StorageType.IO1) .iops(5000) .build(); DatabaseInstance gp3Instance = DatabaseInstance.Builder.create(this, "Gp3Instance") .engine(DatabaseInstanceEngine.mysql(MySqlInstanceEngineProps.builder().version(MysqlEngineVersion.VER_8_0_30).build())) .vpc(vpc) .allocatedStorage(500) .storageType(StorageType.GP3) .storageThroughput(500) .build();
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic StorageType
Returns the enum constant of this type with the specified name.static StorageType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
STANDARD
Standard.Amazon RDS supports magnetic storage for backward compatibility. It is recommended to use General Purpose SSD or Provisioned IOPS SSD for any new storage needs.
- See Also:
-
GP2
General purpose SSD (gp2).Baseline performance determined by volume size
- See Also:
-
GP3
General purpose SSD (gp3).Performance scales independently from storage
- See Also:
-
IO1
Provisioned IOPS SSD (io1).- See Also:
-
IO2
Provisioned IOPS SSD (io2).- See Also:
-
-
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
-