Struct aws_sdk_ec2::model::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 an io1
or io2
volume, with a maximum ratio of 50 IOPS/GiB for io1
, and 500 IOPS/GiB for io2
. Range is 100 to 64,000 IOPS for volumes in most Regions. Maximum IOPS of 64,000 is guaranteed only on instances built on the Nitro System. Other instance families guarantee performance up to 32,000 IOPS. For more information, see Amazon EBS volume types in the Amazon EC2 User Guide.
This parameter is valid only for Provisioned IOPS SSD (io1
and io2
) volumes.
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. gp2
for General Purpose SSD, io1
or io2
for Provisioned IOPS SSD, Throughput Optimized HDD for st1
, Cold HDD for sc1
, or standard
for Magnetic.
Default: gp2
Implementations
sourceimpl 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 an io1
or io2
volume, with a maximum ratio of 50 IOPS/GiB for io1
, and 500 IOPS/GiB for io2
. Range is 100 to 64,000 IOPS for volumes in most Regions. Maximum IOPS of 64,000 is guaranteed only on instances built on the Nitro System. Other instance families guarantee performance up to 32,000 IOPS. For more information, see Amazon EBS volume types in the Amazon EC2 User Guide.
This parameter is valid only for Provisioned IOPS SSD (io1
and io2
) volumes.
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. gp2
for General Purpose SSD, io1
or io2
for Provisioned IOPS SSD, Throughput Optimized HDD for st1
, Cold HDD for sc1
, or standard
for Magnetic.
Default: gp2
sourceimpl ScheduledInstancesEbs
impl ScheduledInstancesEbs
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture ScheduledInstancesEbs
.
Trait Implementations
sourceimpl Clone for ScheduledInstancesEbs
impl Clone for ScheduledInstancesEbs
sourcefn clone(&self) -> ScheduledInstancesEbs
fn clone(&self) -> ScheduledInstancesEbs
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ScheduledInstancesEbs
impl Debug for ScheduledInstancesEbs
sourceimpl PartialEq<ScheduledInstancesEbs> for ScheduledInstancesEbs
impl PartialEq<ScheduledInstancesEbs> for ScheduledInstancesEbs
sourcefn eq(&self, other: &ScheduledInstancesEbs) -> bool
fn eq(&self, other: &ScheduledInstancesEbs) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &ScheduledInstancesEbs) -> bool
fn ne(&self, other: &ScheduledInstancesEbs) -> bool
This method tests for !=
.
impl StructuralPartialEq for ScheduledInstancesEbs
Auto Trait Implementations
impl RefUnwindSafe for ScheduledInstancesEbs
impl Send for ScheduledInstancesEbs
impl Sync for ScheduledInstancesEbs
impl Unpin for ScheduledInstancesEbs
impl UnwindSafe for ScheduledInstancesEbs
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more