Interface CfnInstance.EbsBlockDeviceProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnInstance.EbsBlockDeviceProperty.Jsii$Proxy
- Enclosing class:
CfnInstance
@Stability(Stable)
public static interface CfnInstance.EbsBlockDeviceProperty
extends software.amazon.jsii.JsiiSerializable
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.opsworks.*;
EbsBlockDeviceProperty ebsBlockDeviceProperty = EbsBlockDeviceProperty.builder()
.deleteOnTermination(false)
.iops(123)
.snapshotId("snapshotId")
.volumeSize(123)
.volumeType("volumeType")
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnInstance.EbsBlockDevicePropertystatic final classAn implementation forCfnInstance.EbsBlockDeviceProperty -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default ObjectWhether the volume is deleted on instance termination.default NumbergetIops()The number of I/O operations per second (IOPS) that the volume supports.default StringThe snapshot ID.default NumberThe volume size, in GiB.default StringThe volume type.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getDeleteOnTermination
Whether the volume is deleted on instance termination.Returns union: either
BooleanorIResolvable- See Also:
-
getIops
The number of I/O operations per second (IOPS) that the volume supports.For more information, see EbsBlockDevice .
- See Also:
-
getSnapshotId
The snapshot ID.- See Also:
-
getVolumeSize
The volume size, in GiB.For more information, see EbsBlockDevice .
- See Also:
-
getVolumeType
The volume type.gp2for General Purpose (SSD) volumes,io1for Provisioned IOPS (SSD) volumes,st1for Throughput Optimized hard disk drives (HDD),sc1for Cold HDD,andstandardfor Magnetic volumes.If you specify the
io1volume type, you must also specify a value for theIopsattribute. 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).- See Also:
-
builder
-