Interface CfnImageRecipe.InstanceBlockDeviceMappingProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnImageRecipe.InstanceBlockDeviceMappingProperty.Jsii$Proxy
- Enclosing class:
- CfnImageRecipe
@Stability(Stable)
public static interface CfnImageRecipe.InstanceBlockDeviceMappingProperty
extends software.amazon.jsii.JsiiSerializable
Defines block device mappings for the instance used to configure your image.
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.imagebuilder.*;
InstanceBlockDeviceMappingProperty instanceBlockDeviceMappingProperty = InstanceBlockDeviceMappingProperty.builder()
.deviceName("deviceName")
.ebs(EbsInstanceBlockDeviceSpecificationProperty.builder()
.deleteOnTermination(false)
.encrypted(false)
.iops(123)
.kmsKeyId("kmsKeyId")
.snapshotId("snapshotId")
.throughput(123)
.volumeSize(123)
.volumeType("volumeType")
.build())
.noDevice("noDevice")
.virtualName("virtualName")
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnImageRecipe.InstanceBlockDeviceMappingPropertystatic final classAn implementation forCfnImageRecipe.InstanceBlockDeviceMappingProperty -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default StringThe device to which these mappings apply.default ObjectgetEbs()Use to manage Amazon EBS-specific configuration for this mapping.default StringEnter an empty string to remove a mapping from the parent image.default StringManages the instance ephemeral devices.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getDeviceName
The device to which these mappings apply. -
getEbs
Use to manage Amazon EBS-specific configuration for this mapping. -
getNoDevice
Enter an empty string to remove a mapping from the parent image.The following is an example of an empty string value in the
NoDevicefield.NoDevice:"" -
getVirtualName
Manages the instance ephemeral devices. -
builder
-