pub struct CreateVolumeRequest {
pub availability_zone: String,
pub client_token: Option<String>,
pub size: Option<i32>,
pub snapshot_id: Option<String>,
pub volume_type: Option<String>,
pub iops: Option<i32>,
pub throughput: Option<i32>,
pub encrypted: Option<bool>,
pub kms_key_id: Option<String>,
pub tag_specifications: Option<Vec<TagSpecification>>,
}Expand description
Request to create a volume.
Fields§
§availability_zone: StringThe availability zone.
client_token: Option<String>Stable token used by EC2 to make retries idempotent.
size: Option<i32>The size of the volume in GiBs.
snapshot_id: Option<String>The snapshot ID to create the volume from.
volume_type: Option<String>The volume type: gp2, gp3, io1, io2, st1, sc1, standard.
iops: Option<i32>IOPS for io1, io2, or gp3.
throughput: Option<i32>Throughput for gp3 in MiB/s.
encrypted: Option<bool>Whether to encrypt the volume.
kms_key_id: Option<String>The KMS key ID for encryption.
tag_specifications: Option<Vec<TagSpecification>>Tags for the volume.
Implementations§
Source§impl CreateVolumeRequest
impl CreateVolumeRequest
Sourcepub fn builder() -> CreateVolumeRequestBuilder
pub fn builder() -> CreateVolumeRequestBuilder
Create an instance of CreateVolumeRequest using the builder syntax
Trait Implementations§
Source§impl Clone for CreateVolumeRequest
impl Clone for CreateVolumeRequest
Source§fn clone(&self) -> CreateVolumeRequest
fn clone(&self) -> CreateVolumeRequest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CreateVolumeRequest
impl Debug for CreateVolumeRequest
Auto Trait Implementations§
impl Freeze for CreateVolumeRequest
impl RefUnwindSafe for CreateVolumeRequest
impl Send for CreateVolumeRequest
impl Sync for CreateVolumeRequest
impl Unpin for CreateVolumeRequest
impl UnsafeUnpin for CreateVolumeRequest
impl UnwindSafe for CreateVolumeRequest
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
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
Converts
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>
Converts
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 moreCreates a shared type from an unshared type.