Struct rusoto_autoscaling::BlockDeviceMapping
source · [−]pub struct BlockDeviceMapping {
pub device_name: String,
pub ebs: Option<Ebs>,
pub no_device: Option<bool>,
pub virtual_name: Option<String>,
}
Expand description
Describes a block device mapping.
Fields
device_name: String
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.
ebs: Option<Ebs>
Parameters used to automatically set up EBS volumes when an instance is launched.
You can specify either VirtualName
or Ebs
, but not both.
no_device: Option<bool>
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
.
virtual_name: Option<String>
The name of the virtual device (for example, ephemeral0
).
You can specify either VirtualName
or Ebs
, but not both.
Trait Implementations
sourceimpl Clone for BlockDeviceMapping
impl Clone for BlockDeviceMapping
sourcefn clone(&self) -> BlockDeviceMapping
fn clone(&self) -> BlockDeviceMapping
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for BlockDeviceMapping
impl Debug for BlockDeviceMapping
sourceimpl Default for BlockDeviceMapping
impl Default for BlockDeviceMapping
sourcefn default() -> BlockDeviceMapping
fn default() -> BlockDeviceMapping
Returns the “default value” for a type. Read more
sourceimpl PartialEq<BlockDeviceMapping> for BlockDeviceMapping
impl PartialEq<BlockDeviceMapping> for BlockDeviceMapping
sourcefn eq(&self, other: &BlockDeviceMapping) -> bool
fn eq(&self, other: &BlockDeviceMapping) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &BlockDeviceMapping) -> bool
fn ne(&self, other: &BlockDeviceMapping) -> bool
This method tests for !=
.
impl StructuralPartialEq for BlockDeviceMapping
Auto Trait Implementations
impl RefUnwindSafe for BlockDeviceMapping
impl Send for BlockDeviceMapping
impl Sync for BlockDeviceMapping
impl Unpin for BlockDeviceMapping
impl UnwindSafe for BlockDeviceMapping
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more