Struct aws_sdk_autoscaling::model::BlockDeviceMapping
source · [−]#[non_exhaustive]pub struct BlockDeviceMapping { /* private fields */ }
Expand description
Describes a block device mapping.
Implementations
sourceimpl 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.
sourceimpl BlockDeviceMapping
impl BlockDeviceMapping
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture BlockDeviceMapping
.
Trait Implementations
sourceimpl Clone for BlockDeviceMapping
impl Clone for BlockDeviceMapping
sourcefn clone(&self) -> BlockDeviceMapping
fn clone(&self) -> BlockDeviceMapping
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more