Struct aws_sdk_autoscaling::types::BlockDeviceMapping
source · #[non_exhaustive]pub struct BlockDeviceMapping {
pub virtual_name: Option<String>,
pub device_name: Option<String>,
pub ebs: Option<Ebs>,
pub no_device: Option<bool>,
}Expand description
Describes a block device mapping.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.virtual_name: 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.
device_name: 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.
ebs: Option<Ebs>Information to attach an EBS volume to an instance at launch.
no_device: 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.
Implementations§
source§impl BlockDeviceMapping
impl BlockDeviceMapping
sourcepub fn virtual_name(&self) -> Option<&str>
pub fn virtual_name(&self) -> Option<&str>
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) -> Option<&str>
pub fn device_name(&self) -> Option<&str>
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) -> Option<&Ebs>
pub fn ebs(&self) -> Option<&Ebs>
Information to attach an EBS volume to an instance at launch.
sourcepub fn no_device(&self) -> Option<bool>
pub fn 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.
source§impl BlockDeviceMapping
impl BlockDeviceMapping
sourcepub fn builder() -> BlockDeviceMappingBuilder
pub fn builder() -> BlockDeviceMappingBuilder
Creates a new builder-style object to manufacture BlockDeviceMapping.
Trait Implementations§
source§impl Clone for BlockDeviceMapping
impl Clone for BlockDeviceMapping
source§fn clone(&self) -> BlockDeviceMapping
fn clone(&self) -> BlockDeviceMapping
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for BlockDeviceMapping
impl Debug for BlockDeviceMapping
source§impl PartialEq for BlockDeviceMapping
impl PartialEq for BlockDeviceMapping
source§fn eq(&self, other: &BlockDeviceMapping) -> bool
fn eq(&self, other: &BlockDeviceMapping) -> bool
self and other values to be equal, and is used
by ==.