Interface CfnLaunchTemplate.BlockDeviceMappingProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnLaunchTemplate.BlockDeviceMappingProperty.Jsii$Proxy
- Enclosing class:
CfnLaunchTemplate
@Stability(Stable)
public static interface CfnLaunchTemplate.BlockDeviceMappingProperty
extends software.amazon.jsii.JsiiSerializable
Specifies a block device mapping for a launch template.
You must specify DeviceName plus exactly one of the following properties: Ebs , NoDevice , or VirtualName .
BlockDeviceMapping is a property of AWS::EC2::LaunchTemplate LaunchTemplateData .
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.ec2.*;
BlockDeviceMappingProperty blockDeviceMappingProperty = BlockDeviceMappingProperty.builder()
.deviceName("deviceName")
.ebs(EbsProperty.builder()
.deleteOnTermination(false)
.encrypted(false)
.iops(123)
.kmsKeyId("kmsKeyId")
.snapshotId("snapshotId")
.throughput(123)
.volumeInitializationRate(123)
.volumeSize(123)
.volumeType("volumeType")
.build())
.noDevice("noDevice")
.virtualName("virtualName")
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnLaunchTemplate.BlockDeviceMappingPropertystatic final classAn implementation forCfnLaunchTemplate.BlockDeviceMappingProperty -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default StringThe device name (for example, /dev/sdh or xvdh).default ObjectgetEbs()Parameters used to automatically set up EBS volumes when the instance is launched.default StringTo omit the device from the block device mapping, specify an empty string.default StringThe virtual device name (ephemeralN).Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getDeviceName
The device name (for example, /dev/sdh or xvdh).- See Also:
-
getEbs
Parameters used to automatically set up EBS volumes when the instance is launched.Returns union: either
IResolvableorCfnLaunchTemplate.EbsProperty- See Also:
-
getNoDevice
To omit the device from the block device mapping, specify an empty string.- See Also:
-
getVirtualName
The virtual device name (ephemeralN).Instance store volumes are numbered starting from 0. An instance type with 2 available instance store volumes can specify mappings for ephemeral0 and ephemeral1. The number of available instance store volumes depends on the instance type. After you connect to the instance, you must mount the volume.
- See Also:
-
builder
-