public static interface BlockDeviceMapping.Builder extends SdkPojo, CopyableBuilder<BlockDeviceMapping.Builder,BlockDeviceMapping>
| Modifier and Type | Method and Description |
|---|---|
BlockDeviceMapping.Builder |
deviceName(String deviceName)
The device name assigned to the volume (for example,
/dev/sdh or xvdh). |
default BlockDeviceMapping.Builder |
ebs(Consumer<Ebs.Builder> ebs)
Information to attach an EBS volume to an instance at launch.
|
BlockDeviceMapping.Builder |
ebs(Ebs ebs)
Information to attach an EBS volume to an instance at launch.
|
BlockDeviceMapping.Builder |
noDevice(Boolean noDevice)
Setting this value to
true prevents a volume that is included in the block device mapping of the
AMI from being mapped to the specified device name at launch. |
BlockDeviceMapping.Builder |
virtualName(String virtualName)
The name of the instance store volume (virtual device) to attach to an instance at launch.
|
equalsBySdkFields, sdkFieldscopyapplyMutation, buildBlockDeviceMapping.Builder virtualName(String virtualName)
The name of the instance store volume (virtual device) to attach to an instance at launch. The name must be
in the form ephemeralX where X is a number starting from zero (0), for example,
ephemeral0.
virtualName - The name of the instance store volume (virtual device) to attach to an instance at launch. The name
must be in the form ephemeralX where X is a number starting from zero (0), for example,
ephemeral0.BlockDeviceMapping.Builder deviceName(String deviceName)
The device name assigned to the volume (for example, /dev/sdh or xvdh). For more
information, see Device
naming on Linux instances in the Amazon EC2 User Guide for Linux Instances.
To define a block device mapping, set the device name and exactly one of the following properties:
Ebs, NoDevice, or VirtualName.
deviceName - The device name assigned to the volume (for example, /dev/sdh or xvdh). For
more information, see Device naming on Linux
instances in the Amazon EC2 User Guide for Linux Instances.
To define a block device mapping, set the device name and exactly one of the following properties:
Ebs, NoDevice, or VirtualName.
BlockDeviceMapping.Builder ebs(Ebs ebs)
Information to attach an EBS volume to an instance at launch.
ebs - Information to attach an EBS volume to an instance at launch.default BlockDeviceMapping.Builder ebs(Consumer<Ebs.Builder> ebs)
Information to attach an EBS volume to an instance at launch.
This is a convenience method that creates an instance of theEbs.Builder avoiding the need to create
one manually via Ebs.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and its result is
passed to ebs(Ebs).
ebs - a consumer that will call methods on Ebs.Builderebs(Ebs)BlockDeviceMapping.Builder noDevice(Boolean noDevice)
Setting this value to true prevents a volume that is included in the block device mapping of the
AMI from being mapped to the specified device name at launch.
If NoDevice is true for the root device, instances might fail the EC2 health check.
In that case, Amazon EC2 Auto Scaling launches replacement instances.
noDevice - Setting this value to true prevents a volume that is included in the block device mapping
of the AMI from being mapped to the specified device name at launch.
If NoDevice is true for the root device, instances might fail the EC2 health
check. In that case, Amazon EC2 Auto Scaling launches replacement instances.
Copyright © 2023. All rights reserved.