Struct aws_sdk_ec2::operation::create_volume::CreateVolumeOutput
source · #[non_exhaustive]pub struct CreateVolumeOutput {Show 17 fields
pub attachments: Option<Vec<VolumeAttachment>>,
pub availability_zone: Option<String>,
pub create_time: Option<DateTime>,
pub encrypted: Option<bool>,
pub kms_key_id: Option<String>,
pub outpost_arn: Option<String>,
pub size: Option<i32>,
pub snapshot_id: Option<String>,
pub state: Option<VolumeState>,
pub volume_id: Option<String>,
pub iops: Option<i32>,
pub tags: Option<Vec<Tag>>,
pub volume_type: Option<VolumeType>,
pub fast_restored: Option<bool>,
pub multi_attach_enabled: Option<bool>,
pub throughput: Option<i32>,
pub sse_type: Option<SseType>,
/* private fields */
}
Expand description
Describes a 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.attachments: Option<Vec<VolumeAttachment>>
This parameter is not returned by CreateVolume.
Information about the volume attachments.
availability_zone: Option<String>
The Availability Zone for the volume.
create_time: Option<DateTime>
The time stamp when volume creation was initiated.
encrypted: Option<bool>
Indicates whether the volume is encrypted.
kms_key_id: Option<String>
The Amazon Resource Name (ARN) of the Key Management Service (KMS) KMS key that was used to protect the volume encryption key for the volume.
outpost_arn: Option<String>
The Amazon Resource Name (ARN) of the Outpost.
size: Option<i32>
The size of the volume, in GiBs.
snapshot_id: Option<String>
The snapshot from which the volume was created, if applicable.
state: Option<VolumeState>
The volume state.
volume_id: Option<String>
The ID of the volume.
iops: Option<i32>
The number of I/O operations per second (IOPS). For gp3
, io1
, and io2
volumes, this represents the number of IOPS that are provisioned for the volume. For gp2
volumes, this represents the baseline performance of the volume and the rate at which the volume accumulates I/O credits for bursting.
Any tags assigned to the volume.
volume_type: Option<VolumeType>
The volume type.
fast_restored: Option<bool>
This parameter is not returned by CreateVolume.
Indicates whether the volume was created using fast snapshot restore.
multi_attach_enabled: Option<bool>
Indicates whether Amazon EBS Multi-Attach is enabled.
throughput: Option<i32>
The throughput that the volume supports, in MiB/s.
sse_type: Option<SseType>
This parameter is not returned by CreateVolume.
Reserved for future use.
Implementations§
source§impl CreateVolumeOutput
impl CreateVolumeOutput
sourcepub fn attachments(&self) -> &[VolumeAttachment]
pub fn attachments(&self) -> &[VolumeAttachment]
This parameter is not returned by CreateVolume.
Information about the volume attachments.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .attachments.is_none()
.
sourcepub fn availability_zone(&self) -> Option<&str>
pub fn availability_zone(&self) -> Option<&str>
The Availability Zone for the volume.
sourcepub fn create_time(&self) -> Option<&DateTime>
pub fn create_time(&self) -> Option<&DateTime>
The time stamp when volume creation was initiated.
sourcepub fn kms_key_id(&self) -> Option<&str>
pub fn kms_key_id(&self) -> Option<&str>
The Amazon Resource Name (ARN) of the Key Management Service (KMS) KMS key that was used to protect the volume encryption key for the volume.
sourcepub fn outpost_arn(&self) -> Option<&str>
pub fn outpost_arn(&self) -> Option<&str>
The Amazon Resource Name (ARN) of the Outpost.
sourcepub fn snapshot_id(&self) -> Option<&str>
pub fn snapshot_id(&self) -> Option<&str>
The snapshot from which the volume was created, if applicable.
sourcepub fn state(&self) -> Option<&VolumeState>
pub fn state(&self) -> Option<&VolumeState>
The volume state.
sourcepub fn iops(&self) -> Option<i32>
pub fn iops(&self) -> Option<i32>
The number of I/O operations per second (IOPS). For gp3
, io1
, and io2
volumes, this represents the number of IOPS that are provisioned for the volume. For gp2
volumes, this represents the baseline performance of the volume and the rate at which the volume accumulates I/O credits for bursting.
Any tags assigned to the volume.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .tags.is_none()
.
sourcepub fn volume_type(&self) -> Option<&VolumeType>
pub fn volume_type(&self) -> Option<&VolumeType>
The volume type.
sourcepub fn fast_restored(&self) -> Option<bool>
pub fn fast_restored(&self) -> Option<bool>
This parameter is not returned by CreateVolume.
Indicates whether the volume was created using fast snapshot restore.
sourcepub fn multi_attach_enabled(&self) -> Option<bool>
pub fn multi_attach_enabled(&self) -> Option<bool>
Indicates whether Amazon EBS Multi-Attach is enabled.
sourcepub fn throughput(&self) -> Option<i32>
pub fn throughput(&self) -> Option<i32>
The throughput that the volume supports, in MiB/s.
source§impl CreateVolumeOutput
impl CreateVolumeOutput
sourcepub fn builder() -> CreateVolumeOutputBuilder
pub fn builder() -> CreateVolumeOutputBuilder
Creates a new builder-style object to manufacture CreateVolumeOutput
.
Trait Implementations§
source§impl Clone for CreateVolumeOutput
impl Clone for CreateVolumeOutput
source§fn clone(&self) -> CreateVolumeOutput
fn clone(&self) -> CreateVolumeOutput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CreateVolumeOutput
impl Debug for CreateVolumeOutput
source§impl PartialEq for CreateVolumeOutput
impl PartialEq for CreateVolumeOutput
source§fn eq(&self, other: &CreateVolumeOutput) -> bool
fn eq(&self, other: &CreateVolumeOutput) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl RequestId for CreateVolumeOutput
impl RequestId for CreateVolumeOutput
source§fn request_id(&self) -> Option<&str>
fn request_id(&self) -> Option<&str>
None
if the service could not be reached.impl StructuralPartialEq for CreateVolumeOutput
Auto Trait Implementations§
impl Freeze for CreateVolumeOutput
impl RefUnwindSafe for CreateVolumeOutput
impl Send for CreateVolumeOutput
impl Sync for CreateVolumeOutput
impl Unpin for CreateVolumeOutput
impl UnwindSafe for CreateVolumeOutput
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