#[non_exhaustive]pub struct VolumeConfiguration {
pub volume_type: Option<String>,
pub volume_size: i32,
pub volume_baseline_iops: i32,
pub volume_burst_iops: i32,
pub volume_baseline_throughput: i32,
pub volume_burst_throughput: i32,
pub root_volume: Option<bool>,
}Expand description
Describes the configuration of an Amazon Elastic Block Store (Amazon 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.volume_type: Option<String>The volume type.
This can be gp2 for General Purpose SSD, io1 or io2 for Provisioned IOPS SSD, st1 for Throughput Optimized HDD, sc1 for Cold HDD, or standard for Magnetic volumes.
volume_size: i32The size of the volume, in GiB.
volume_baseline_iops: i32The baseline IOPS of the volume.
volume_burst_iops: i32The burst IOPS of the volume.
volume_baseline_throughput: i32The baseline throughput of the volume.
volume_burst_throughput: i32The burst throughput of the volume.
root_volume: Option<bool>Contains the image used to boot the instance during launch.
Implementations§
source§impl VolumeConfiguration
impl VolumeConfiguration
sourcepub fn volume_type(&self) -> Option<&str>
pub fn volume_type(&self) -> Option<&str>
The volume type.
This can be gp2 for General Purpose SSD, io1 or io2 for Provisioned IOPS SSD, st1 for Throughput Optimized HDD, sc1 for Cold HDD, or standard for Magnetic volumes.
sourcepub fn volume_size(&self) -> i32
pub fn volume_size(&self) -> i32
The size of the volume, in GiB.
sourcepub fn volume_baseline_iops(&self) -> i32
pub fn volume_baseline_iops(&self) -> i32
The baseline IOPS of the volume.
sourcepub fn volume_burst_iops(&self) -> i32
pub fn volume_burst_iops(&self) -> i32
The burst IOPS of the volume.
sourcepub fn volume_baseline_throughput(&self) -> i32
pub fn volume_baseline_throughput(&self) -> i32
The baseline throughput of the volume.
sourcepub fn volume_burst_throughput(&self) -> i32
pub fn volume_burst_throughput(&self) -> i32
The burst throughput of the volume.
sourcepub fn root_volume(&self) -> Option<bool>
pub fn root_volume(&self) -> Option<bool>
Contains the image used to boot the instance during launch.
source§impl VolumeConfiguration
impl VolumeConfiguration
sourcepub fn builder() -> VolumeConfigurationBuilder
pub fn builder() -> VolumeConfigurationBuilder
Creates a new builder-style object to manufacture VolumeConfiguration.
Trait Implementations§
source§impl Clone for VolumeConfiguration
impl Clone for VolumeConfiguration
source§fn clone(&self) -> VolumeConfiguration
fn clone(&self) -> VolumeConfiguration
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for VolumeConfiguration
impl Debug for VolumeConfiguration
source§impl PartialEq for VolumeConfiguration
impl PartialEq for VolumeConfiguration
impl StructuralPartialEq for VolumeConfiguration
Auto Trait Implementations§
impl Freeze for VolumeConfiguration
impl RefUnwindSafe for VolumeConfiguration
impl Send for VolumeConfiguration
impl Sync for VolumeConfiguration
impl Unpin for VolumeConfiguration
impl UnwindSafe for VolumeConfiguration
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