Struct aws_sdk_ec2::types::LaunchTemplateEbsBlockDevice
source · #[non_exhaustive]pub struct LaunchTemplateEbsBlockDevice {
pub encrypted: Option<bool>,
pub delete_on_termination: Option<bool>,
pub iops: Option<i32>,
pub kms_key_id: Option<String>,
pub snapshot_id: Option<String>,
pub volume_size: Option<i32>,
pub volume_type: Option<VolumeType>,
pub throughput: Option<i32>,
}
Expand description
Describes a block device for an EBS volume.
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.encrypted: Option<bool>
Indicates whether the EBS volume is encrypted.
delete_on_termination: Option<bool>
Indicates whether the EBS volume is deleted on instance termination.
iops: Option<i32>
The number of I/O operations per second (IOPS) that the volume supports.
kms_key_id: Option<String>
The ARN of the Key Management Service (KMS) CMK used for encryption.
snapshot_id: Option<String>
The ID of the snapshot.
volume_size: Option<i32>
The size of the volume, in GiB.
volume_type: Option<VolumeType>
The volume type.
throughput: Option<i32>
The throughput that the volume supports, in MiB/s.
Implementations§
source§impl LaunchTemplateEbsBlockDevice
impl LaunchTemplateEbsBlockDevice
sourcepub fn delete_on_termination(&self) -> Option<bool>
pub fn delete_on_termination(&self) -> Option<bool>
Indicates whether the EBS volume is deleted on instance termination.
sourcepub fn iops(&self) -> Option<i32>
pub fn iops(&self) -> Option<i32>
The number of I/O operations per second (IOPS) that the volume supports.
sourcepub fn kms_key_id(&self) -> Option<&str>
pub fn kms_key_id(&self) -> Option<&str>
The ARN of the Key Management Service (KMS) CMK used for encryption.
sourcepub fn snapshot_id(&self) -> Option<&str>
pub fn snapshot_id(&self) -> Option<&str>
The ID of the snapshot.
sourcepub fn volume_size(&self) -> Option<i32>
pub fn volume_size(&self) -> Option<i32>
The size of the volume, in GiB.
sourcepub fn volume_type(&self) -> Option<&VolumeType>
pub fn volume_type(&self) -> Option<&VolumeType>
The volume type.
sourcepub fn throughput(&self) -> Option<i32>
pub fn throughput(&self) -> Option<i32>
The throughput that the volume supports, in MiB/s.
source§impl LaunchTemplateEbsBlockDevice
impl LaunchTemplateEbsBlockDevice
sourcepub fn builder() -> LaunchTemplateEbsBlockDeviceBuilder
pub fn builder() -> LaunchTemplateEbsBlockDeviceBuilder
Creates a new builder-style object to manufacture LaunchTemplateEbsBlockDevice
.
Trait Implementations§
source§impl Clone for LaunchTemplateEbsBlockDevice
impl Clone for LaunchTemplateEbsBlockDevice
source§fn clone(&self) -> LaunchTemplateEbsBlockDevice
fn clone(&self) -> LaunchTemplateEbsBlockDevice
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for LaunchTemplateEbsBlockDevice
impl Debug for LaunchTemplateEbsBlockDevice
source§impl PartialEq for LaunchTemplateEbsBlockDevice
impl PartialEq for LaunchTemplateEbsBlockDevice
source§fn eq(&self, other: &LaunchTemplateEbsBlockDevice) -> bool
fn eq(&self, other: &LaunchTemplateEbsBlockDevice) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for LaunchTemplateEbsBlockDevice
Auto Trait Implementations§
impl Freeze for LaunchTemplateEbsBlockDevice
impl RefUnwindSafe for LaunchTemplateEbsBlockDevice
impl Send for LaunchTemplateEbsBlockDevice
impl Sync for LaunchTemplateEbsBlockDevice
impl Unpin for LaunchTemplateEbsBlockDevice
impl UnwindSafe for LaunchTemplateEbsBlockDevice
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