-
Notifications
You must be signed in to change notification settings - Fork 17
/
EbsDeviceProps.go
59 lines (56 loc) · 2.28 KB
/
EbsDeviceProps.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
package awsautoscaling
// Properties of an EBS block device.
//
// Example:
// // The code below shows an example of how to instantiate this type.
// // The values are placeholders you should change.
// import "github.com/aws/aws-cdk-go/awscdk"
//
// ebsDeviceProps := &EbsDeviceProps{
// DeleteOnTermination: jsii.Boolean(false),
// Iops: jsii.Number(123),
// SnapshotId: jsii.String("snapshotId"),
// Throughput: jsii.Number(123),
// VolumeSize: jsii.Number(123),
// VolumeType: awscdk.Aws_autoscaling.EbsDeviceVolumeType_STANDARD,
// }
//
type EbsDeviceProps struct {
// Indicates whether to delete the volume when the instance is terminated.
// Default: - true for Amazon EC2 Auto Scaling, false otherwise (e.g. EBS)
//
DeleteOnTermination *bool `field:"optional" json:"deleteOnTermination" yaml:"deleteOnTermination"`
// The number of I/O operations per second (IOPS) to provision for the volume.
//
// Must only be set for `volumeType`: `EbsDeviceVolumeType.IO1`
//
// The maximum ratio of IOPS to volume size (in GiB) is 50:1, so for 5,000 provisioned IOPS,
// you need at least 100 GiB storage on the volume.
// See: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSVolumeTypes.html
//
// Default: - none, required for `EbsDeviceVolumeType.IO1`
//
Iops *float64 `field:"optional" json:"iops" yaml:"iops"`
// The throughput that the volume supports, in MiB/s Takes a minimum of 125 and maximum of 1000.
// See: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSVolumeTypes.html
//
// Default: - 125 MiB/s. Only valid on gp3 volumes.
//
Throughput *float64 `field:"optional" json:"throughput" yaml:"throughput"`
// The EBS volume type.
// See: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSVolumeTypes.html
//
// Default: `EbsDeviceVolumeType.GP2`
//
VolumeType EbsDeviceVolumeType `field:"optional" json:"volumeType" yaml:"volumeType"`
// The volume size, in Gibibytes (GiB).
//
// If you specify volumeSize, it must be equal or greater than the size of the snapshot.
// Default: - The snapshot size.
//
VolumeSize *float64 `field:"optional" json:"volumeSize" yaml:"volumeSize"`
// The snapshot ID of the volume to use.
// Default: - No snapshot will be used.
//
SnapshotId *string `field:"optional" json:"snapshotId" yaml:"snapshotId"`
}