Struct aws_sdk_securityhub::types::AwsAutoScalingLaunchConfigurationBlockDeviceMappingsDetails
source · #[non_exhaustive]pub struct AwsAutoScalingLaunchConfigurationBlockDeviceMappingsDetails {
pub device_name: Option<String>,
pub ebs: Option<AwsAutoScalingLaunchConfigurationBlockDeviceMappingsEbsDetails>,
pub no_device: Option<bool>,
pub virtual_name: Option<String>,
}
Expand description
A block device for the instance.
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.device_name: Option<String>
The device name that is exposed to the EC2 instance. For example, /dev/sdh
or xvdh
.
ebs: Option<AwsAutoScalingLaunchConfigurationBlockDeviceMappingsEbsDetails>
Parameters that are used to automatically set up Amazon EBS volumes when an instance is launched.
no_device: Option<bool>
Whether to suppress the device that is included in the block device mapping of the Amazon Machine Image (AMI).
If NoDevice
is true
, then you cannot specify Ebs
.>
virtual_name: Option<String>
The name of the virtual device (for example, ephemeral0
).
You can provide either VirtualName
or Ebs
, but not both.
Implementations§
source§impl AwsAutoScalingLaunchConfigurationBlockDeviceMappingsDetails
impl AwsAutoScalingLaunchConfigurationBlockDeviceMappingsDetails
sourcepub fn device_name(&self) -> Option<&str>
pub fn device_name(&self) -> Option<&str>
The device name that is exposed to the EC2 instance. For example, /dev/sdh
or xvdh
.
sourcepub fn ebs(
&self
) -> Option<&AwsAutoScalingLaunchConfigurationBlockDeviceMappingsEbsDetails>
pub fn ebs( &self ) -> Option<&AwsAutoScalingLaunchConfigurationBlockDeviceMappingsEbsDetails>
Parameters that are used to automatically set up Amazon EBS volumes when an instance is launched.
sourcepub fn no_device(&self) -> Option<bool>
pub fn no_device(&self) -> Option<bool>
Whether to suppress the device that is included in the block device mapping of the Amazon Machine Image (AMI).
If NoDevice
is true
, then you cannot specify Ebs
.>
sourcepub fn virtual_name(&self) -> Option<&str>
pub fn virtual_name(&self) -> Option<&str>
The name of the virtual device (for example, ephemeral0
).
You can provide either VirtualName
or Ebs
, but not both.
source§impl AwsAutoScalingLaunchConfigurationBlockDeviceMappingsDetails
impl AwsAutoScalingLaunchConfigurationBlockDeviceMappingsDetails
sourcepub fn builder(
) -> AwsAutoScalingLaunchConfigurationBlockDeviceMappingsDetailsBuilder
pub fn builder( ) -> AwsAutoScalingLaunchConfigurationBlockDeviceMappingsDetailsBuilder
Creates a new builder-style object to manufacture AwsAutoScalingLaunchConfigurationBlockDeviceMappingsDetails
.
Trait Implementations§
source§impl Clone for AwsAutoScalingLaunchConfigurationBlockDeviceMappingsDetails
impl Clone for AwsAutoScalingLaunchConfigurationBlockDeviceMappingsDetails
source§fn clone(&self) -> AwsAutoScalingLaunchConfigurationBlockDeviceMappingsDetails
fn clone(&self) -> AwsAutoScalingLaunchConfigurationBlockDeviceMappingsDetails
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl PartialEq for AwsAutoScalingLaunchConfigurationBlockDeviceMappingsDetails
impl PartialEq for AwsAutoScalingLaunchConfigurationBlockDeviceMappingsDetails
source§fn eq(
&self,
other: &AwsAutoScalingLaunchConfigurationBlockDeviceMappingsDetails
) -> bool
fn eq( &self, other: &AwsAutoScalingLaunchConfigurationBlockDeviceMappingsDetails ) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for AwsAutoScalingLaunchConfigurationBlockDeviceMappingsDetails
Auto Trait Implementations§
impl Freeze for AwsAutoScalingLaunchConfigurationBlockDeviceMappingsDetails
impl RefUnwindSafe for AwsAutoScalingLaunchConfigurationBlockDeviceMappingsDetails
impl Send for AwsAutoScalingLaunchConfigurationBlockDeviceMappingsDetails
impl Sync for AwsAutoScalingLaunchConfigurationBlockDeviceMappingsDetails
impl Unpin for AwsAutoScalingLaunchConfigurationBlockDeviceMappingsDetails
impl UnwindSafe for AwsAutoScalingLaunchConfigurationBlockDeviceMappingsDetails
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more