Class StorageType
The type of storage.
Inheritance
Namespace: Amazon.CDK.AWS.RDS
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public sealed class StorageType : Enum
Syntax (vb)
Public NotInheritable Class StorageType
Inherits
Enum
Remarks
See: https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_Storage.html
ExampleMetadata: infused
Examples
Vpc vpc;
var iopsInstance = new DatabaseInstance(this, "IopsInstance", new DatabaseInstanceProps {
Engine = DatabaseInstanceEngine.Mysql(new MySqlInstanceEngineProps { Version = MysqlEngineVersion.VER_8_0_39 }),
Vpc = vpc,
StorageType = StorageType.IO1,
Iops = 5000
});
var gp3Instance = new DatabaseInstance(this, "Gp3Instance", new DatabaseInstanceProps {
Engine = DatabaseInstanceEngine.Mysql(new MySqlInstanceEngineProps { Version = MysqlEngineVersion.VER_8_0_39 }),
Vpc = vpc,
AllocatedStorage = 500,
StorageType = StorageType.GP3,
StorageThroughput = 500
});
Synopsis
Fields
GP2 | General purpose SSD (gp2). |
GP3 | General purpose SSD (gp3). |
IO1 | Provisioned IOPS SSD (io1). |
IO2 | Provisioned IOPS SSD (io2). |
STANDARD | Standard. |
value__ |
Fields
GP2
General purpose SSD (gp2).
public const StorageType GP2
Field Value
Type | Description |
---|---|
StorageType |
Remarks
Baseline performance determined by volume size
See: https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_Storage.html#Concepts.Storage.GeneralSSD
GP3
General purpose SSD (gp3).
public const StorageType GP3
Field Value
Type | Description |
---|---|
StorageType |
Remarks
Performance scales independently from storage
See: https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_Storage.html#Concepts.Storage.GeneralSSD
IO1
Provisioned IOPS SSD (io1).
public const StorageType IO1
Field Value
Type | Description |
---|---|
StorageType |
Remarks
IO2
Provisioned IOPS SSD (io2).
public const StorageType IO2
Field Value
Type | Description |
---|---|
StorageType |
Remarks
STANDARD
Standard.
public const StorageType STANDARD
Field Value
Type | Description |
---|---|
StorageType |
Remarks
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: https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_Storage.html#CHAP_Storage.Magnetic
value__
public int value__
Field Value
Type | Description |
---|---|
System.Int32 |