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
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();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnInstance.BlockDeviceMappingPropertystatic final classAn implementation forCfnInstance.BlockDeviceMappingProperty -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default StringThe device name that is exposed to the instance, such as/dev/sdh.default ObjectgetEbs()AnEBSBlockDevicethat defines how to configure an Amazon EBS volume when the instance is launched.default StringSuppresses the specified device included in the AMI's block device mapping.default StringThe 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_DEVICEand OpsWorks Stacks will provide the correct device name.- See Also:
-
getEbs
AnEBSBlockDevicethat defines how to configure an Amazon EBS volume when the instance is launched.You can specify either the
VirtualNameorEbs, but not both.Returns union: either
IResolvableorCfnInstance.EbsBlockDeviceProperty- See Also:
-
getNoDevice
Suppresses the specified device included in the AMI's block device mapping.- See Also:
-
getVirtualName
The virtual device name.For more information, see BlockDeviceMapping . You can specify either the
VirtualNameorEbs, but not both.- See Also:
-
builder
-