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 exposed to the EC2 instance (for example,
/dev/sdh or xvdh). |
default BlockDeviceMapping.Builder |
ebs(Consumer<Ebs.Builder> ebs)
Parameters used to automatically set up EBS volumes when an instance is launched.
|
BlockDeviceMapping.Builder |
ebs(Ebs ebs)
Parameters used to automatically set up EBS volumes when an instance is launched.
|
BlockDeviceMapping.Builder |
noDevice(Boolean noDevice)
Setting this value to
true suppresses the specified device included in the block device mapping
of the AMI. |
BlockDeviceMapping.Builder |
virtualName(String virtualName)
The name of the virtual device (for example,
ephemeral0). |
equalsBySdkFields, sdkFieldscopyapplyMutation, buildBlockDeviceMapping.Builder virtualName(String virtualName)
The name of the virtual device (for example, ephemeral0).
You can specify either VirtualName or Ebs, but not both.
virtualName - The name of the virtual device (for example, ephemeral0).
You can specify either VirtualName or Ebs, but not both.
BlockDeviceMapping.Builder deviceName(String deviceName)
The device name exposed to the EC2 instance (for example, /dev/sdh or xvdh). For
more information, see Device
Naming on Linux Instances in the Amazon EC2 User Guide for Linux Instances.
deviceName - The device name exposed to the EC2 instance (for example, /dev/sdh or xvdh).
For more information, see Device Naming on Linux
Instances in the Amazon EC2 User Guide for Linux Instances.BlockDeviceMapping.Builder ebs(Ebs ebs)
Parameters used to automatically set up EBS volumes when an instance is launched.
You can specify either VirtualName or Ebs, but not both.
ebs - Parameters used to automatically set up EBS volumes when an instance is launched.
You can specify either VirtualName or Ebs, but not both.
default BlockDeviceMapping.Builder ebs(Consumer<Ebs.Builder> ebs)
Parameters used to automatically set up EBS volumes when an instance is launched.
You can specify either VirtualName or Ebs, but not both.
Ebs.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 suppresses the specified device included in the block device mapping
of the AMI.
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.
If you specify NoDevice, you cannot specify Ebs.
noDevice - Setting this value to true suppresses the specified device included in the block device
mapping of the AMI.
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.
If you specify NoDevice, you cannot specify Ebs.
Copyright © 2021. All rights reserved.