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 ==
.