@Stability(value=Stable)
public static interface CfnInstance.BlockDeviceMappingProperty
extends software.amazon.jsii.JsiiSerializable
This data type maps directly to the Amazon EC2 BlockDeviceMapping data type.
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.opsworks.*;
BlockDeviceMappingProperty blockDeviceMappingProperty = BlockDeviceMappingProperty.builder()
.deviceName("deviceName")
.ebs(EbsBlockDeviceProperty.builder()
.deleteOnTermination(false)
.iops(123)
.snapshotId("snapshotId")
.volumeSize(123)
.volumeType("volumeType")
.build())
.noDevice("noDevice")
.virtualName("virtualName")
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnInstance.BlockDeviceMappingProperty.Builder
A builder for
CfnInstance.BlockDeviceMappingProperty |
static class |
CfnInstance.BlockDeviceMappingProperty.Jsii$Proxy
An implementation for
CfnInstance.BlockDeviceMappingProperty |
| Modifier and Type | Method and Description |
|---|---|
static CfnInstance.BlockDeviceMappingProperty.Builder |
builder() |
default String |
getDeviceName()
The device name that is exposed to the instance, such as `/dev/sdh` .
|
default Object |
getEbs()
An `EBSBlockDevice` that defines how to configure an Amazon EBS volume when the instance is launched.
|
default String |
getNoDevice()
Suppresses the specified device included in the AMI's block device mapping.
|
default String |
getVirtualName()
The virtual device name.
|
@Stability(value=Stable) @Nullable default String getDeviceName()
For the root device, you can use the explicit device name or you can set this parameter to ROOT_DEVICE and AWS OpsWorks Stacks will provide the correct device name.
@Stability(value=Stable) @Nullable default Object getEbs()
You can specify either the VirtualName or Ebs , but not both.
@Stability(value=Stable) @Nullable default String getNoDevice()
@Stability(value=Stable) @Nullable default String getVirtualName()
For more information, see BlockDeviceMapping . You can specify either the VirtualName or Ebs , but not both.
@Stability(value=Stable) static CfnInstance.BlockDeviceMappingProperty.Builder builder()
Copyright © 2022. All rights reserved.