@Generated(value="jsii-pacmak/1.74.0 (build 6d08790)",
date="2023-03-28T21:34:27.068Z")
public interface BlockDevice
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) // the properties below are optional .mappingEnabled(false) .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() |
java.lang.String |
getDeviceName()
The device name exposed to the EC2 instance.
|
default java.lang.Boolean |
getMappingEnabled()
Deprecated.
use `BlockDeviceVolume.noDevice()` as the volume to supress a mapping.
|
BlockDeviceVolume |
getVolume()
Defines the block device volume, to be either an Amazon EBS volume or an ephemeral instance store volume.
|
java.lang.String getDeviceName()
Supply a value like /dev/sdh
, xvdh
.
BlockDeviceVolume getVolume()
Supply a value like BlockDeviceVolume.ebs(15)
, BlockDeviceVolume.ephemeral(0)
.
@Deprecated default java.lang.Boolean getMappingEnabled()
If set to false for the root device, the instance might fail the Amazon EC2 health check. Amazon EC2 Auto Scaling launches a replacement instance if the instance fails the health check.
Default: true - device mapping is left untouched
static BlockDevice.Builder builder()
BlockDevice.Builder
of BlockDevice