Struct aws_sdk_securityhub::types::AwsEc2VolumeDetails
source · #[non_exhaustive]pub struct AwsEc2VolumeDetails {
pub create_time: Option<String>,
pub device_name: Option<String>,
pub encrypted: Option<bool>,
pub size: Option<i32>,
pub snapshot_id: Option<String>,
pub status: Option<String>,
pub kms_key_id: Option<String>,
pub attachments: Option<Vec<AwsEc2VolumeAttachment>>,
pub volume_id: Option<String>,
pub volume_type: Option<String>,
pub volume_scan_status: Option<String>,
}
Expand description
Details about an EC2 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.create_time: Option<String>
Indicates when the volume was created.
This field accepts only the specified formats. Timestamps can end with Z
or ("+" / "-") time-hour [":" time-minute]
. The time-secfrac after seconds is limited to a maximum of 9 digits. The offset is bounded by +/-18:00. Here are valid timestamp formats with examples:
-
YYYY-MM-DDTHH:MM:SSZ
(for example,2019-01-31T23:00:00Z
) -
YYYY-MM-DDTHH:MM:SS.mmmmmmmmmZ
(for example,2019-01-31T23:00:00.123456789Z
) -
YYYY-MM-DDTHH:MM:SS+HH:MM
(for example,2024-01-04T15:25:10+17:59
) -
YYYY-MM-DDTHH:MM:SS-HHMM
(for example,2024-01-04T15:25:10-1759
) -
YYYY-MM-DDTHH:MM:SS.mmmmmmmmm+HH:MM
(for example,2024-01-04T15:25:10.123456789+17:59
)
device_name: Option<String>
The device name for the volume that is attached to the instance.
encrypted: Option<bool>
Specifies whether the volume is encrypted.
size: Option<i32>
The size of the volume, in GiBs.
snapshot_id: Option<String>
The snapshot from which the volume was created.
status: Option<String>
The volume state. Valid values are as follows:
-
available
-
creating
-
deleted
-
deleting
-
error
-
in-use
kms_key_id: Option<String>
The ARN of the KMS key that was used to protect the volume encryption key for the volume.
attachments: Option<Vec<AwsEc2VolumeAttachment>>
The volume attachments.
volume_id: Option<String>
The ID of the volume.
volume_type: Option<String>
The volume type.
volume_scan_status: Option<String>
Indicates whether the volume was scanned or skipped.
Implementations§
source§impl AwsEc2VolumeDetails
impl AwsEc2VolumeDetails
sourcepub fn create_time(&self) -> Option<&str>
pub fn create_time(&self) -> Option<&str>
Indicates when the volume was created.
This field accepts only the specified formats. Timestamps can end with Z
or ("+" / "-") time-hour [":" time-minute]
. The time-secfrac after seconds is limited to a maximum of 9 digits. The offset is bounded by +/-18:00. Here are valid timestamp formats with examples:
-
YYYY-MM-DDTHH:MM:SSZ
(for example,2019-01-31T23:00:00Z
) -
YYYY-MM-DDTHH:MM:SS.mmmmmmmmmZ
(for example,2019-01-31T23:00:00.123456789Z
) -
YYYY-MM-DDTHH:MM:SS+HH:MM
(for example,2024-01-04T15:25:10+17:59
) -
YYYY-MM-DDTHH:MM:SS-HHMM
(for example,2024-01-04T15:25:10-1759
) -
YYYY-MM-DDTHH:MM:SS.mmmmmmmmm+HH:MM
(for example,2024-01-04T15:25:10.123456789+17:59
)
sourcepub fn device_name(&self) -> Option<&str>
pub fn device_name(&self) -> Option<&str>
The device name for the volume that is attached to the instance.
sourcepub fn snapshot_id(&self) -> Option<&str>
pub fn snapshot_id(&self) -> Option<&str>
The snapshot from which the volume was created.
sourcepub fn status(&self) -> Option<&str>
pub fn status(&self) -> Option<&str>
The volume state. Valid values are as follows:
-
available
-
creating
-
deleted
-
deleting
-
error
-
in-use
sourcepub fn kms_key_id(&self) -> Option<&str>
pub fn kms_key_id(&self) -> Option<&str>
The ARN of the KMS key that was used to protect the volume encryption key for the volume.
sourcepub fn attachments(&self) -> &[AwsEc2VolumeAttachment]
pub fn attachments(&self) -> &[AwsEc2VolumeAttachment]
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 volume_type(&self) -> Option<&str>
pub fn volume_type(&self) -> Option<&str>
The volume type.
sourcepub fn volume_scan_status(&self) -> Option<&str>
pub fn volume_scan_status(&self) -> Option<&str>
Indicates whether the volume was scanned or skipped.
source§impl AwsEc2VolumeDetails
impl AwsEc2VolumeDetails
sourcepub fn builder() -> AwsEc2VolumeDetailsBuilder
pub fn builder() -> AwsEc2VolumeDetailsBuilder
Creates a new builder-style object to manufacture AwsEc2VolumeDetails
.
Trait Implementations§
source§impl Clone for AwsEc2VolumeDetails
impl Clone for AwsEc2VolumeDetails
source§fn clone(&self) -> AwsEc2VolumeDetails
fn clone(&self) -> AwsEc2VolumeDetails
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for AwsEc2VolumeDetails
impl Debug for AwsEc2VolumeDetails
source§impl PartialEq for AwsEc2VolumeDetails
impl PartialEq for AwsEc2VolumeDetails
source§fn eq(&self, other: &AwsEc2VolumeDetails) -> bool
fn eq(&self, other: &AwsEc2VolumeDetails) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for AwsEc2VolumeDetails
Auto Trait Implementations§
impl Freeze for AwsEc2VolumeDetails
impl RefUnwindSafe for AwsEc2VolumeDetails
impl Send for AwsEc2VolumeDetails
impl Sync for AwsEc2VolumeDetails
impl Unpin for AwsEc2VolumeDetails
impl UnwindSafe for AwsEc2VolumeDetails
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