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.
Uses the date-time
format specified in RFC 3339 section 5.6, Internet Date/Time Format. The value cannot contain spaces, and date and time should be separated by T
. For example, 2020-03-22T13:22:13.933Z
.
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.
Uses the date-time
format specified in RFC 3339 section 5.6, Internet Date/Time Format. The value cannot contain spaces, and date and time should be separated by T
. For example, 2020-03-22T13:22:13.933Z
.
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 ==
.