-
Notifications
You must be signed in to change notification settings - Fork 17
/
StorageType.go
62 lines (58 loc) · 2.03 KB
/
StorageType.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
package awsrds
// The type of storage.
//
// Example:
// var vpc vpc
//
//
// iopsInstance := rds.NewDatabaseInstance(this, jsii.String("IopsInstance"), &DatabaseInstanceProps{
// Engine: rds.DatabaseInstanceEngine_Mysql(&MySqlInstanceEngineProps{
// Version: rds.MysqlEngineVersion_VER_8_0_30(),
// }),
// Vpc: Vpc,
// StorageType: rds.StorageType_IO1,
// Iops: jsii.Number(5000),
// })
//
// gp3Instance := rds.NewDatabaseInstance(this, jsii.String("Gp3Instance"), &DatabaseInstanceProps{
// Engine: rds.DatabaseInstanceEngine_*Mysql(&MySqlInstanceEngineProps{
// Version: rds.MysqlEngineVersion_VER_8_0_30(),
// }),
// Vpc: Vpc,
// AllocatedStorage: jsii.Number(500),
// StorageType: rds.StorageType_GP3,
// StorageThroughput: jsii.Number(500),
// })
//
// See: https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_Storage.html
//
type StorageType string
const (
// 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
//
StorageType_STANDARD StorageType = "STANDARD"
// 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
//
StorageType_GP2 StorageType = "GP2"
// General purpose SSD (gp3).
//
// Performance scales independently from storage.
// See: https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_Storage.html#Concepts.Storage.GeneralSSD
//
StorageType_GP3 StorageType = "GP3"
// Provisioned IOPS SSD (io1).
// See: https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_Storage.html#USER_PIOPS
//
StorageType_IO1 StorageType = "IO1"
// Provisioned IOPS SSD (io2).
// See: https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_Storage.html#USER_PIOPS
//
StorageType_IO2 StorageType = "IO2"
)