@Generated(value="jsii-pacmak/1.57.0 (build f614666)", date="2022-04-22T22:36:19.927Z") @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.
https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/device_naming.html@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.