Struct aws_sdk_ec2::types::ScheduledInstancesEbs
source · #[non_exhaustive]pub struct ScheduledInstancesEbs {
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
Describes an EBS volume for a Scheduled 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.delete_on_termination: Option<bool>
Indicates whether the volume is deleted on instance termination.
encrypted: Option<bool>
Indicates whether the volume is encrypted. You can attached encrypted volumes only to instances that support them.
iops: Option<i32>
The number of I/O operations per second (IOPS) to provision for a gp3
, io1
, or io2
volume.
snapshot_id: Option<String>
The ID of the snapshot.
volume_size: Option<i32>
The size of the volume, in GiB.
Default: If you're creating the volume from a snapshot and don't specify a volume size, the default is the snapshot size.
volume_type: Option<String>
The volume type.
Default: gp2
Implementations§
source§impl ScheduledInstancesEbs
impl ScheduledInstancesEbs
sourcepub fn delete_on_termination(&self) -> Option<bool>
pub fn delete_on_termination(&self) -> Option<bool>
Indicates whether the volume is deleted on instance termination.
sourcepub fn encrypted(&self) -> Option<bool>
pub fn encrypted(&self) -> Option<bool>
Indicates whether the volume is encrypted. You can attached encrypted volumes only to instances that support them.
sourcepub fn iops(&self) -> Option<i32>
pub fn iops(&self) -> Option<i32>
The number of I/O operations per second (IOPS) to provision for a gp3
, io1
, or io2
volume.
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.
Default: If you're creating the volume from a snapshot and don't specify a volume size, the default is the snapshot size.
sourcepub fn volume_type(&self) -> Option<&str>
pub fn volume_type(&self) -> Option<&str>
The volume type.
Default: gp2
source§impl ScheduledInstancesEbs
impl ScheduledInstancesEbs
sourcepub fn builder() -> ScheduledInstancesEbsBuilder
pub fn builder() -> ScheduledInstancesEbsBuilder
Creates a new builder-style object to manufacture ScheduledInstancesEbs
.
Trait Implementations§
source§impl Clone for ScheduledInstancesEbs
impl Clone for ScheduledInstancesEbs
source§fn clone(&self) -> ScheduledInstancesEbs
fn clone(&self) -> ScheduledInstancesEbs
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ScheduledInstancesEbs
impl Debug for ScheduledInstancesEbs
source§impl PartialEq for ScheduledInstancesEbs
impl PartialEq for ScheduledInstancesEbs
source§fn eq(&self, other: &ScheduledInstancesEbs) -> bool
fn eq(&self, other: &ScheduledInstancesEbs) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ScheduledInstancesEbs
Auto Trait Implementations§
impl Freeze for ScheduledInstancesEbs
impl RefUnwindSafe for ScheduledInstancesEbs
impl Send for ScheduledInstancesEbs
impl Sync for ScheduledInstancesEbs
impl Unpin for ScheduledInstancesEbs
impl UnwindSafe for ScheduledInstancesEbs
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)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