@Stability(value=Stable)
public static interface CfnInstance.EbsBlockDeviceProperty
extends software.amazon.jsii.JsiiSerializable
This data type maps directly to the Amazon EC2 EbsBlockDevice data type.
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();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnInstance.EbsBlockDeviceProperty.Builder
A builder for
CfnInstance.EbsBlockDeviceProperty |
static class |
CfnInstance.EbsBlockDeviceProperty.Jsii$Proxy
An implementation for
CfnInstance.EbsBlockDeviceProperty |
| Modifier and Type | Method and Description |
|---|---|
static CfnInstance.EbsBlockDeviceProperty.Builder |
builder() |
default Object |
getDeleteOnTermination()
Whether the volume is deleted on instance termination.
|
default Number |
getIops()
The number of I/O operations per second (IOPS) that the volume supports.
|
default String |
getSnapshotId()
The snapshot ID.
|
default Number |
getVolumeSize()
The volume size, in GiB.
|
default String |
getVolumeType()
The volume type.
|
@Stability(value=Stable) @Nullable default Object getDeleteOnTermination()
@Stability(value=Stable) @Nullable default Number getIops()
For more information, see EbsBlockDevice .
@Stability(value=Stable) @Nullable default String getSnapshotId()
@Stability(value=Stable) @Nullable default Number getVolumeSize()
For more information, see EbsBlockDevice .
@Stability(value=Stable) @Nullable default String getVolumeType()
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).
@Stability(value=Stable) static CfnInstance.EbsBlockDeviceProperty.Builder builder()
Copyright © 2022. All rights reserved.