@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:36.727Z") @Stability(value=Stable) public interface BlockDevice 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.autoscaling.*;
BlockDeviceVolume blockDeviceVolume;
BlockDevice blockDevice = BlockDevice.builder()
.deviceName("deviceName")
.volume(blockDeviceVolume)
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
BlockDevice.Builder
A builder for
BlockDevice |
static class |
BlockDevice.Jsii$Proxy
An implementation for
BlockDevice |
| Modifier and Type | Method and Description |
|---|---|
static BlockDevice.Builder |
builder() |
String |
getDeviceName()
The device name exposed to the EC2 instance.
|
BlockDeviceVolume |
getVolume()
Defines the block device volume, to be either an Amazon EBS volume or an ephemeral instance store volume.
|
@Stability(value=Stable) @NotNull String getDeviceName()
Supply a value like /dev/sdh, xvdh.
@Stability(value=Stable) @NotNull BlockDeviceVolume getVolume()
Supply a value like BlockDeviceVolume.ebs(15), BlockDeviceVolume.ephemeral(0).
@Stability(value=Stable) static BlockDevice.Builder builder()
BlockDevice.Builder of BlockDeviceCopyright © 2022. All rights reserved.