Struct aws_sdk_storagegateway::model::CachediScsiVolume
source · [−]#[non_exhaustive]pub struct CachediScsiVolume {Show 13 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 source_snapshot_id: Option<String>,
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 cached 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 that describes 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 or detached from a gateway. For more information, see Moving your volumes to a different gateway.
volume_size_in_bytes: i64
The size, in bytes, of the volume capacity.
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 cached volume is not restoring or bootstrapping.
source_snapshot_id: Option<String>
If the cached volume was created from a snapshot, this field contains the snapshot ID used, e.g., snap-78e22663. Otherwise, this field is not included.
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.
If you use a delete tool that overwrites the data on your volume with random data, your usage will not be reduced. This is because the random data is not compressible. If you want to reduce the amount of billed storage on your volume, we recommend overwriting your files with zeros to compress the data to a negligible amount of actual storage.
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 CachediScsiVolume
impl CachediScsiVolume
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 that describes 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 or detached 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, in bytes, of the volume capacity.
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 cached volume is not restoring or bootstrapping.
sourcepub fn source_snapshot_id(&self) -> Option<&str>
pub fn source_snapshot_id(&self) -> Option<&str>
If the cached 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 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.
If you use a delete tool that overwrites the data on your volume with random data, your usage will not be reduced. This is because the random data is not compressible. If you want to reduce the amount of billed storage on your volume, we recommend overwriting your files with zeros to compress the data to a negligible amount of actual storage.
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 CachediScsiVolume
impl CachediScsiVolume
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture CachediScsiVolume
Trait Implementations
sourceimpl Clone for CachediScsiVolume
impl Clone for CachediScsiVolume
sourcefn clone(&self) -> CachediScsiVolume
fn clone(&self) -> CachediScsiVolume
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 CachediScsiVolume
impl Debug for CachediScsiVolume
sourceimpl PartialEq<CachediScsiVolume> for CachediScsiVolume
impl PartialEq<CachediScsiVolume> for CachediScsiVolume
sourcefn eq(&self, other: &CachediScsiVolume) -> bool
fn eq(&self, other: &CachediScsiVolume) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &CachediScsiVolume) -> bool
fn ne(&self, other: &CachediScsiVolume) -> bool
This method tests for !=
.
impl StructuralPartialEq for CachediScsiVolume
Auto Trait Implementations
impl RefUnwindSafe for CachediScsiVolume
impl Send for CachediScsiVolume
impl Sync for CachediScsiVolume
impl Unpin for CachediScsiVolume
impl UnwindSafe for CachediScsiVolume
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