Interface BlockDevice
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
BlockDevice.Jsii$Proxy
@Generated(value="jsii-pacmak/1.104.0 (build e79254c)",
date="2024-11-06T23:25:04.593Z")
@Stability(Stable)
public interface BlockDevice
extends software.amazon.jsii.JsiiSerializable
Block device.
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.autoscaling.*; BlockDeviceVolume blockDeviceVolume; BlockDevice blockDevice = BlockDevice.builder() .deviceName("deviceName") .volume(blockDeviceVolume) .build();
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forBlockDevice
static final class
An implementation forBlockDevice
-
Method Summary
Modifier and TypeMethodDescriptionstatic BlockDevice.Builder
builder()
The device name exposed to the EC2 instance.Defines the block device volume, to be either an Amazon EBS volume or an ephemeral instance store volume.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getDeviceName
The device name exposed to the EC2 instance.Supply a value like
/dev/sdh
,xvdh
.- See Also:
-
getVolume
Defines the block device volume, to be either an Amazon EBS volume or an ephemeral instance store volume.Supply a value like
BlockDeviceVolume.ebs(15)
,BlockDeviceVolume.ephemeral(0)
. -
builder
- Returns:
- a
BlockDevice.Builder
ofBlockDevice
-