@Generated(value="jsii-pacmak/1.5.0 (build 46538f8)", date="2020-05-21T11:01:44.792Z") @Stability(value=Stable) public interface BlockDevice extends software.amazon.jsii.JsiiSerializable
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.
|
default Boolean |
getMappingEnabled()
If false, the device mapping will be suppressed.
|
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()
Example:
// Example automatically generated without compilation. See https://github.com/aws/jsii/issues/826 "/dev/sdh" , "xvdh";
https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/device_naming.html
@Stability(value=Stable) @NotNull BlockDeviceVolume getVolume()
Example:
// Example automatically generated without compilation. See https://github.com/aws/jsii/issues/826 BlockDeviceVolume.ebs(15) , BlockDeviceVolume.ephemeral(0);
@Stability(value=Stable) @Nullable default 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
@Stability(value=Stable) static BlockDevice.Builder builder()
BlockDevice.Builder
of BlockDevice
Copyright © 2020. All rights reserved.