Interface CfnInstance.BlockDeviceMappingProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnInstance.BlockDeviceMappingProperty.Jsii$Proxy
- Enclosing class:
CfnInstance
@Stability(Stable)
public static interface CfnInstance.BlockDeviceMappingProperty
extends software.amazon.jsii.JsiiSerializable
Describes a block device mapping.
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();
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forCfnInstance.BlockDeviceMappingProperty
static final class
An implementation forCfnInstance.BlockDeviceMappingProperty
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
default String
The device name that is exposed to the instance, such as/dev/sdh
.default Object
getEbs()
AnEBSBlockDevice
that defines how to configure an Amazon EBS volume when the instance is launched.default String
Suppresses the specified device included in the AMI's block device mapping.default String
The virtual device name.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getDeviceName
The device name that is exposed to the instance, such as/dev/sdh
.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. -
getEbs
AnEBSBlockDevice
that defines how to configure an Amazon EBS volume when the instance is launched.You can specify either the
VirtualName
orEbs
, but not both. -
getNoDevice
Suppresses the specified device included in the AMI's block device mapping. -
getVirtualName
The virtual device name.For more information, see BlockDeviceMapping . You can specify either the
VirtualName
orEbs
, but not both. -
builder
-