StorageType

class aws_cdk.aws_rds.StorageType(value)

Bases: Enum

The type of storage.

See:

https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_Storage.html

ExampleMetadata:

infused

Example:

# vpc: ec2.Vpc


iops_instance = rds.DatabaseInstance(self, "IopsInstance",
    engine=rds.DatabaseInstanceEngine.mysql(version=rds.MysqlEngineVersion.VER_8_0_30),
    vpc=vpc,
    storage_type=rds.StorageType.IO1,
    iops=5000
)

gp3_instance = rds.DatabaseInstance(self, "Gp3Instance",
    engine=rds.DatabaseInstanceEngine.mysql(version=rds.MysqlEngineVersion.VER_8_0_30),
    vpc=vpc,
    allocated_storage=500,
    storage_type=rds.StorageType.GP3,
    storage_throughput=500
)

Attributes

GP2

General purpose SSD (gp2).

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).

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).

See:

https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_Storage.html#USER_PIOPS

IO2

Provisioned IOPS SSD (io2).

See:

https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_Storage.html#USER_PIOPS

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:

https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_Storage.html#CHAP_Storage.Magnetic