Struct aws_sdk_storagegateway::model::StorediScsiVolume
source · [−]#[non_exhaustive]pub struct StorediScsiVolume {Show 15 fields
pub volume_arn: Option<String>,
pub volume_id: Option<String>,
pub volume_type: Option<String>,
pub volume_status: Option<String>,
pub volume_attachment_status: Option<String>,
pub volume_size_in_bytes: i64,
pub volume_progress: Option<f64>,
pub volume_disk_id: Option<String>,
pub source_snapshot_id: Option<String>,
pub preserved_existing_data: bool,
pub volumei_scsi_attributes: Option<VolumeiScsiAttributes>,
pub created_date: Option<DateTime>,
pub volume_used_in_bytes: Option<i64>,
pub kms_key: Option<String>,
pub target_name: Option<String>,
}
Expand description
Describes an iSCSI stored 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_arn: Option<String>
The Amazon Resource Name (ARN) of the storage volume.
volume_id: Option<String>
The unique identifier of the volume, e.g., vol-AE4B946D.
volume_type: Option<String>
One of the VolumeType enumeration values describing the type of the volume.
volume_status: Option<String>
One of the VolumeStatus values that indicates the state of the storage volume.
volume_attachment_status: Option<String>
A value that indicates whether a storage volume is attached to, detached from, or is in the process of detaching from a gateway. For more information, see Moving your volumes to a different gateway.
volume_size_in_bytes: i64
The size of the volume in bytes.
volume_progress: Option<f64>
Represents the percentage complete if the volume is restoring or bootstrapping that represents the percent of data transferred. This field does not appear in the response if the stored volume is not restoring or bootstrapping.
volume_disk_id: Option<String>
The ID of the local disk that was specified in the CreateStorediSCSIVolume
operation.
source_snapshot_id: Option<String>
If the stored volume was created from a snapshot, this field contains the snapshot ID used, e.g. snap-78e22663. Otherwise, this field is not included.
preserved_existing_data: bool
Indicates if when the stored volume was created, existing data on the underlying local disk was preserved.
Valid Values: true
| false
volumei_scsi_attributes: Option<VolumeiScsiAttributes>
An VolumeiSCSIAttributes
object that represents a collection of iSCSI attributes for one stored volume.
created_date: Option<DateTime>
The date the volume was created. Volumes created prior to March 28, 2017 don’t have this timestamp.
volume_used_in_bytes: Option<i64>
The size of the data stored on the volume in bytes. This value is calculated based on the number of blocks that are touched, instead of the actual amount of data written. This value can be useful for sequential write patterns but less accurate for random write patterns. VolumeUsedInBytes
is different from the compressed size of the volume, which is the value that is used to calculate your bill.
This value is not available for volumes created prior to May 13, 2015, until you store data on the volume.
kms_key: Option<String>
The Amazon Resource Name (ARN) of a symmetric customer master key (CMK) used for Amazon S3 server-side encryption. Storage Gateway does not support asymmetric CMKs. This value can only be set when KMSEncrypted
is true
. Optional.
target_name: Option<String>
The name of the iSCSI target used by an initiator to connect to a volume and used as a suffix for the target ARN. For example, specifying TargetName
as myvolume results in the target ARN of arn:aws:storagegateway:us-east-2:111122223333:gateway/sgw-12A3456B/target/iqn.1997-05.com.amazon:myvolume
. The target name must be unique across all volumes on a gateway.
If you don't specify a value, Storage Gateway uses the value that was previously used for this volume as the new target name.
Implementations
sourceimpl StorediScsiVolume
impl StorediScsiVolume
sourcepub fn volume_arn(&self) -> Option<&str>
pub fn volume_arn(&self) -> Option<&str>
The Amazon Resource Name (ARN) of the storage volume.
sourcepub fn volume_id(&self) -> Option<&str>
pub fn volume_id(&self) -> Option<&str>
The unique identifier of the volume, e.g., vol-AE4B946D.
sourcepub fn volume_type(&self) -> Option<&str>
pub fn volume_type(&self) -> Option<&str>
One of the VolumeType enumeration values describing the type of the volume.
sourcepub fn volume_status(&self) -> Option<&str>
pub fn volume_status(&self) -> Option<&str>
One of the VolumeStatus values that indicates the state of the storage volume.
sourcepub fn volume_attachment_status(&self) -> Option<&str>
pub fn volume_attachment_status(&self) -> Option<&str>
A value that indicates whether a storage volume is attached to, detached from, or is in the process of detaching from a gateway. For more information, see Moving your volumes to a different gateway.
sourcepub fn volume_size_in_bytes(&self) -> i64
pub fn volume_size_in_bytes(&self) -> i64
The size of the volume in bytes.
sourcepub fn volume_progress(&self) -> Option<f64>
pub fn volume_progress(&self) -> Option<f64>
Represents the percentage complete if the volume is restoring or bootstrapping that represents the percent of data transferred. This field does not appear in the response if the stored volume is not restoring or bootstrapping.
sourcepub fn volume_disk_id(&self) -> Option<&str>
pub fn volume_disk_id(&self) -> Option<&str>
The ID of the local disk that was specified in the CreateStorediSCSIVolume
operation.
sourcepub fn source_snapshot_id(&self) -> Option<&str>
pub fn source_snapshot_id(&self) -> Option<&str>
If the stored volume was created from a snapshot, this field contains the snapshot ID used, e.g. snap-78e22663. Otherwise, this field is not included.
sourcepub fn preserved_existing_data(&self) -> bool
pub fn preserved_existing_data(&self) -> bool
Indicates if when the stored volume was created, existing data on the underlying local disk was preserved.
Valid Values: true
| false
sourcepub fn volumei_scsi_attributes(&self) -> Option<&VolumeiScsiAttributes>
pub fn volumei_scsi_attributes(&self) -> Option<&VolumeiScsiAttributes>
An VolumeiSCSIAttributes
object that represents a collection of iSCSI attributes for one stored volume.
sourcepub fn created_date(&self) -> Option<&DateTime>
pub fn created_date(&self) -> Option<&DateTime>
The date the volume was created. Volumes created prior to March 28, 2017 don’t have this timestamp.
sourcepub fn volume_used_in_bytes(&self) -> Option<i64>
pub fn volume_used_in_bytes(&self) -> Option<i64>
The size of the data stored on the volume in bytes. This value is calculated based on the number of blocks that are touched, instead of the actual amount of data written. This value can be useful for sequential write patterns but less accurate for random write patterns. VolumeUsedInBytes
is different from the compressed size of the volume, which is the value that is used to calculate your bill.
This value is not available for volumes created prior to May 13, 2015, until you store data on the volume.
sourcepub fn kms_key(&self) -> Option<&str>
pub fn kms_key(&self) -> Option<&str>
The Amazon Resource Name (ARN) of a symmetric customer master key (CMK) used for Amazon S3 server-side encryption. Storage Gateway does not support asymmetric CMKs. This value can only be set when KMSEncrypted
is true
. Optional.
sourcepub fn target_name(&self) -> Option<&str>
pub fn target_name(&self) -> Option<&str>
The name of the iSCSI target used by an initiator to connect to a volume and used as a suffix for the target ARN. For example, specifying TargetName
as myvolume results in the target ARN of arn:aws:storagegateway:us-east-2:111122223333:gateway/sgw-12A3456B/target/iqn.1997-05.com.amazon:myvolume
. The target name must be unique across all volumes on a gateway.
If you don't specify a value, Storage Gateway uses the value that was previously used for this volume as the new target name.
sourceimpl StorediScsiVolume
impl StorediScsiVolume
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture StorediScsiVolume
Trait Implementations
sourceimpl Clone for StorediScsiVolume
impl Clone for StorediScsiVolume
sourcefn clone(&self) -> StorediScsiVolume
fn clone(&self) -> StorediScsiVolume
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for StorediScsiVolume
impl Debug for StorediScsiVolume
sourceimpl PartialEq<StorediScsiVolume> for StorediScsiVolume
impl PartialEq<StorediScsiVolume> for StorediScsiVolume
sourcefn eq(&self, other: &StorediScsiVolume) -> bool
fn eq(&self, other: &StorediScsiVolume) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &StorediScsiVolume) -> bool
fn ne(&self, other: &StorediScsiVolume) -> bool
This method tests for !=
.
impl StructuralPartialEq for StorediScsiVolume
Auto Trait Implementations
impl RefUnwindSafe for StorediScsiVolume
impl Send for StorediScsiVolume
impl Sync for StorediScsiVolume
impl Unpin for StorediScsiVolume
impl UnwindSafe for StorediScsiVolume
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more