Class CfnInstance.EbsBlockDeviceProperty
Inheritance
Implements
Namespace: Amazon.CDK.AWS.OpsWorks
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class EbsBlockDeviceProperty : Object, CfnInstance.IEbsBlockDeviceProperty
Syntax (vb)
Public Class EbsBlockDeviceProperty
Inherits Object
Implements CfnInstance.IEbsBlockDeviceProperty
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.OpsWorks;
var ebsBlockDeviceProperty = new EbsBlockDeviceProperty {
DeleteOnTermination = false,
Iops = 123,
SnapshotId = "snapshotId",
VolumeSize = 123,
VolumeType = "volumeType"
};
Synopsis
Constructors
EbsBlockDeviceProperty() |
Properties
DeleteOnTermination | Whether the volume is deleted on instance termination. |
Iops | The number of I/O operations per second (IOPS) that the volume supports. |
SnapshotId | The snapshot ID. |
VolumeSize | The volume size, in GiB. |
VolumeType | The volume type. |
Constructors
EbsBlockDeviceProperty()
public EbsBlockDeviceProperty()
Properties
DeleteOnTermination
Whether the volume is deleted on instance termination.
public object DeleteOnTermination { get; set; }
Property Value
System.Object
Remarks
Iops
The number of I/O operations per second (IOPS) that the volume supports.
public Nullable<double> Iops { get; set; }
Property Value
System.Nullable<System.Double>
Remarks
SnapshotId
The snapshot ID.
public string SnapshotId { get; set; }
Property Value
System.String
Remarks
VolumeSize
The volume size, in GiB.
public Nullable<double> VolumeSize { get; set; }
Property Value
System.Nullable<System.Double>
Remarks
VolumeType
The volume type.
public string VolumeType { get; set; }
Property Value
System.String
Remarks
gp2
for General Purpose (SSD) volumes, io1
for Provisioned IOPS (SSD) volumes, st1
for Throughput Optimized hard disk drives (HDD), sc1
for Cold HDD,and standard
for Magnetic volumes.
If you specify the io1
volume type, you must also specify a value for the Iops
attribute. The maximum ratio of provisioned IOPS to requested volume size (in GiB) is 50:1. AWS uses the default volume size (in GiB) specified in the AMI attributes to set IOPS to 50 x (volume size).