public static interface BlockDeviceMapping.Builder extends CopyableBuilder<BlockDeviceMapping.Builder,BlockDeviceMapping>
Modifier and Type | Method and Description |
---|---|
BlockDeviceMapping.Builder |
deviceName(String deviceName)
The device name that is exposed to the instance, such as
/dev/sdh . |
default BlockDeviceMapping.Builder |
ebs(Consumer<EbsBlockDevice.Builder> ebs)
An
EBSBlockDevice that defines how to configure an Amazon EBS volume when the instance is
launched. |
BlockDeviceMapping.Builder |
ebs(EbsBlockDevice ebs)
An
EBSBlockDevice that defines how to configure an Amazon EBS volume when the instance is
launched. |
BlockDeviceMapping.Builder |
noDevice(String noDevice)
Suppresses the specified device included in the AMI's block device mapping.
|
BlockDeviceMapping.Builder |
virtualName(String virtualName)
The virtual device name.
|
copy
applyMutation, build
BlockDeviceMapping.Builder deviceName(String deviceName)
The device name that is exposed to the instance, such as /dev/sdh
. For the root device, you can
use the explicit device name or you can set this parameter to ROOT_DEVICE
and AWS OpsWorks
Stacks will provide the correct device name.
deviceName
- The device name that is exposed to the instance, such as /dev/sdh
. For the root device,
you can use the explicit device name or you can set this parameter to ROOT_DEVICE
and AWS
OpsWorks Stacks will provide the correct device name.BlockDeviceMapping.Builder noDevice(String noDevice)
Suppresses the specified device included in the AMI's block device mapping.
noDevice
- Suppresses the specified device included in the AMI's block device mapping.BlockDeviceMapping.Builder virtualName(String virtualName)
The virtual device name. For more information, see BlockDeviceMapping.
virtualName
- The virtual device name. For more information, see BlockDeviceMapping.BlockDeviceMapping.Builder ebs(EbsBlockDevice ebs)
An EBSBlockDevice
that defines how to configure an Amazon EBS volume when the instance is
launched.
ebs
- An EBSBlockDevice
that defines how to configure an Amazon EBS volume when the instance is
launched.default BlockDeviceMapping.Builder ebs(Consumer<EbsBlockDevice.Builder> ebs)
An EBSBlockDevice
that defines how to configure an Amazon EBS volume when the instance is
launched.
EbsBlockDevice.Builder
avoiding the need to
create one manually via EbsBlockDevice.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its
result is passed to ebs(EbsBlockDevice)
.ebs
- a consumer that will call methods on EbsBlockDevice.Builder
ebs(EbsBlockDevice)
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.