public static interface CfnLaunchTemplate.BlockDeviceMappingProperty
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) .volumeSize(123) .volumeType("volumeType") .build()) .noDevice("noDevice") .virtualName("virtualName") .build();
Modifier and Type | Interface and Description |
---|---|
static class |
CfnLaunchTemplate.BlockDeviceMappingProperty.Builder
A builder for
CfnLaunchTemplate.BlockDeviceMappingProperty |
static class |
CfnLaunchTemplate.BlockDeviceMappingProperty.Jsii$Proxy
An implementation for
CfnLaunchTemplate.BlockDeviceMappingProperty |
Modifier and Type | Method and Description |
---|---|
static CfnLaunchTemplate.BlockDeviceMappingProperty.Builder |
builder() |
default java.lang.String |
getDeviceName()
The device name (for example, /dev/sdh or xvdh).
|
default java.lang.Object |
getEbs()
Parameters used to automatically set up EBS volumes when the instance is launched.
|
default java.lang.String |
getNoDevice()
To omit the device from the block device mapping, specify an empty string.
|
default java.lang.String |
getVirtualName()
The virtual device name (ephemeralN).
|
default java.lang.String getDeviceName()
default java.lang.Object getEbs()
default java.lang.String getNoDevice()
default java.lang.String getVirtualName()
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.
static CfnLaunchTemplate.BlockDeviceMappingProperty.Builder builder()