Struct aws_sdk_securityhub::types::AwsAutoScalingLaunchConfigurationBlockDeviceMappingsEbsDetails
source · #[non_exhaustive]pub struct AwsAutoScalingLaunchConfigurationBlockDeviceMappingsEbsDetails {
pub delete_on_termination: Option<bool>,
pub encrypted: Option<bool>,
pub iops: Option<i32>,
pub snapshot_id: Option<String>,
pub volume_size: Option<i32>,
pub volume_type: Option<String>,
}Expand description
Parameters that are used to automatically set up EBS volumes when an instance is launched.
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.delete_on_termination: Option<bool>Whether to delete the volume when the instance is terminated.
encrypted: Option<bool>Whether to encrypt the volume.
iops: Option<i32>The number of input/output (I/O) operations per second (IOPS) to provision for the volume.
Only supported for gp3 or io1 volumes. Required for io1 volumes. Not used with standard, gp2, st1, or sc1 volumes.
snapshot_id: Option<String>The snapshot ID of the volume to use.
You must specify either VolumeSize or SnapshotId.
volume_size: Option<i32>The volume size, in GiBs. The following are the supported volumes sizes for each volume type:
-
gp2 and gp3: 1-16,384
-
io1: 4-16,384
-
st1 and sc1: 125-16,384
-
standard: 1-1,024
You must specify either SnapshotId or VolumeSize. If you specify both SnapshotId and VolumeSize, the volume size must be equal or greater than the size of the snapshot.
volume_type: Option<String>The volume type. Valid values are as follows:
-
gp2 -
gp3 -
io1 -
sc1 -
st1 -
standard
Implementations§
source§impl AwsAutoScalingLaunchConfigurationBlockDeviceMappingsEbsDetails
impl AwsAutoScalingLaunchConfigurationBlockDeviceMappingsEbsDetails
sourcepub fn delete_on_termination(&self) -> Option<bool>
pub fn delete_on_termination(&self) -> Option<bool>
Whether to delete the volume when the instance is terminated.
sourcepub fn iops(&self) -> Option<i32>
pub fn iops(&self) -> Option<i32>
The number of input/output (I/O) operations per second (IOPS) to provision for the volume.
Only supported for gp3 or io1 volumes. Required for io1 volumes. Not used with standard, gp2, st1, or sc1 volumes.
sourcepub fn snapshot_id(&self) -> Option<&str>
pub fn snapshot_id(&self) -> Option<&str>
The snapshot ID of the volume to use.
You must specify either VolumeSize or SnapshotId.
sourcepub fn volume_size(&self) -> Option<i32>
pub fn volume_size(&self) -> Option<i32>
The volume size, in GiBs. The following are the supported volumes sizes for each volume type:
-
gp2 and gp3: 1-16,384
-
io1: 4-16,384
-
st1 and sc1: 125-16,384
-
standard: 1-1,024
You must specify either SnapshotId or VolumeSize. If you specify both SnapshotId and VolumeSize, the volume size must be equal or greater than the size of the snapshot.
sourcepub fn volume_type(&self) -> Option<&str>
pub fn volume_type(&self) -> Option<&str>
The volume type. Valid values are as follows:
-
gp2 -
gp3 -
io1 -
sc1 -
st1 -
standard
source§impl AwsAutoScalingLaunchConfigurationBlockDeviceMappingsEbsDetails
impl AwsAutoScalingLaunchConfigurationBlockDeviceMappingsEbsDetails
sourcepub fn builder(
) -> AwsAutoScalingLaunchConfigurationBlockDeviceMappingsEbsDetailsBuilder
pub fn builder( ) -> AwsAutoScalingLaunchConfigurationBlockDeviceMappingsEbsDetailsBuilder
Creates a new builder-style object to manufacture AwsAutoScalingLaunchConfigurationBlockDeviceMappingsEbsDetails.
Trait Implementations§
source§impl Clone for AwsAutoScalingLaunchConfigurationBlockDeviceMappingsEbsDetails
impl Clone for AwsAutoScalingLaunchConfigurationBlockDeviceMappingsEbsDetails
source§fn clone(
&self
) -> AwsAutoScalingLaunchConfigurationBlockDeviceMappingsEbsDetails
fn clone( &self ) -> AwsAutoScalingLaunchConfigurationBlockDeviceMappingsEbsDetails
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl PartialEq for AwsAutoScalingLaunchConfigurationBlockDeviceMappingsEbsDetails
impl PartialEq for AwsAutoScalingLaunchConfigurationBlockDeviceMappingsEbsDetails
source§fn eq(
&self,
other: &AwsAutoScalingLaunchConfigurationBlockDeviceMappingsEbsDetails
) -> bool
fn eq( &self, other: &AwsAutoScalingLaunchConfigurationBlockDeviceMappingsEbsDetails ) -> bool
self and other values to be equal, and is used
by ==.