Interface CfnInstance.EbsBlockDeviceProperty

All Superinterfaces:
All Known Implementing Classes:
Enclosing class:

@Stability(Stable) public static interface CfnInstance.EbsBlockDeviceProperty extends
Describes an Amazon EBS volume.

This data type maps directly to the Amazon EC2 EbsBlockDevice data type.


 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 EbsBlockDeviceProperty ebsBlockDeviceProperty = EbsBlockDeviceProperty.builder()
  • Method Details

    • getDeleteOnTermination

      @Stability(Stable) @Nullable default Object getDeleteOnTermination()
      Whether the volume is deleted on instance termination.
    • getIops

      @Stability(Stable) @Nullable default Number getIops()
      The number of I/O operations per second (IOPS) that the volume supports.

      For more information, see EbsBlockDevice .

    • getSnapshotId

      @Stability(Stable) @Nullable default String getSnapshotId()
      The snapshot ID.
    • getVolumeSize

      @Stability(Stable) @Nullable default Number getVolumeSize()
      The volume size, in GiB.

      For more information, see EbsBlockDevice .

    • getVolumeType

      @Stability(Stable) @Nullable default String getVolumeType()
      The volume type.

      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).

    • builder

      @Stability(Stable) static CfnInstance.EbsBlockDeviceProperty.Builder builder()
      a CfnInstance.EbsBlockDeviceProperty.Builder of CfnInstance.EbsBlockDeviceProperty