#[non_exhaustive]pub struct BlockDeviceMappingBuilder { /* private fields */ }Expand description
A builder for BlockDeviceMapping.
Implementations§
source§impl BlockDeviceMappingBuilder
impl BlockDeviceMappingBuilder
sourcepub fn virtual_name(self, input: impl Into<String>) -> Self
pub fn virtual_name(self, input: impl Into<String>) -> Self
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.
sourcepub fn set_virtual_name(self, input: Option<String>) -> Self
pub fn set_virtual_name(self, input: Option<String>) -> Self
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.
sourcepub fn get_virtual_name(&self) -> &Option<String>
pub fn get_virtual_name(&self) -> &Option<String>
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.
sourcepub fn device_name(self, input: impl Into<String>) -> Self
pub fn device_name(self, input: impl Into<String>) -> Self
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.
sourcepub fn set_device_name(self, input: Option<String>) -> Self
pub fn set_device_name(self, input: Option<String>) -> Self
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.
sourcepub fn get_device_name(&self) -> &Option<String>
pub fn get_device_name(&self) -> &Option<String>
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.
sourcepub fn ebs(self, input: Ebs) -> Self
pub fn ebs(self, input: Ebs) -> Self
Information to attach an EBS volume to an instance at launch.
sourcepub fn set_ebs(self, input: Option<Ebs>) -> Self
pub fn set_ebs(self, input: Option<Ebs>) -> Self
Information to attach an EBS volume to an instance at launch.
sourcepub fn get_ebs(&self) -> &Option<Ebs>
pub fn get_ebs(&self) -> &Option<Ebs>
Information to attach an EBS volume to an instance at launch.
sourcepub fn no_device(self, input: bool) -> Self
pub fn no_device(self, input: bool) -> Self
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.
sourcepub fn set_no_device(self, input: Option<bool>) -> Self
pub fn set_no_device(self, input: Option<bool>) -> Self
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.
sourcepub fn get_no_device(&self) -> &Option<bool>
pub fn get_no_device(&self) -> &Option<bool>
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.
sourcepub fn build(self) -> BlockDeviceMapping
pub fn build(self) -> BlockDeviceMapping
Consumes the builder and constructs a BlockDeviceMapping.
Trait Implementations§
source§impl Clone for BlockDeviceMappingBuilder
impl Clone for BlockDeviceMappingBuilder
source§fn clone(&self) -> BlockDeviceMappingBuilder
fn clone(&self) -> BlockDeviceMappingBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for BlockDeviceMappingBuilder
impl Debug for BlockDeviceMappingBuilder
source§impl Default for BlockDeviceMappingBuilder
impl Default for BlockDeviceMappingBuilder
source§fn default() -> BlockDeviceMappingBuilder
fn default() -> BlockDeviceMappingBuilder
source§impl PartialEq for BlockDeviceMappingBuilder
impl PartialEq for BlockDeviceMappingBuilder
source§fn eq(&self, other: &BlockDeviceMappingBuilder) -> bool
fn eq(&self, other: &BlockDeviceMappingBuilder) -> bool
self and other values to be equal, and is used
by ==.