Struct aws_sdk_fsx::types::Volume

source ·
#[non_exhaustive]
pub struct Volume { pub creation_time: Option<DateTime>, pub file_system_id: Option<String>, pub lifecycle: Option<VolumeLifecycle>, pub name: Option<String>, pub ontap_configuration: Option<OntapVolumeConfiguration>, pub resource_arn: Option<String>, pub tags: Option<Vec<Tag>>, pub volume_id: Option<String>, pub volume_type: Option<VolumeType>, pub lifecycle_transition_reason: Option<LifecycleTransitionReason>, pub administrative_actions: Option<Vec<AdministrativeAction>>, pub open_zfs_configuration: Option<OpenZfsVolumeConfiguration>, }
Expand description

Describes an Amazon FSx volume.

Fields (Non-exhaustive)§

This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.
§creation_time: Option<DateTime>

The time that the resource was created, in seconds (since 1970-01-01T00:00:00Z), also known as Unix time.

§file_system_id: Option<String>

The globally unique ID of the file system, assigned by Amazon FSx.

§lifecycle: Option<VolumeLifecycle>

The lifecycle status of the volume.

  • AVAILABLE - The volume is fully available for use.

  • CREATED - The volume has been created.

  • CREATING - Amazon FSx is creating the new volume.

  • DELETING - Amazon FSx is deleting an existing volume.

  • FAILED - Amazon FSx was unable to create the volume.

  • MISCONFIGURED - The volume is in a failed but recoverable state.

  • PENDING - Amazon FSx hasn't started creating the volume.

§name: Option<String>

The name of the volume.

§ontap_configuration: Option<OntapVolumeConfiguration>

The configuration of an Amazon FSx for NetApp ONTAP volume.

§resource_arn: Option<String>

The Amazon Resource Name (ARN) for a given resource. ARNs uniquely identify Amazon Web Services resources. We require an ARN when you need to specify a resource unambiguously across all of Amazon Web Services. For more information, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference.

§tags: Option<Vec<Tag>>

A list of Tag values, with a maximum of 50 elements.

§volume_id: Option<String>

The system-generated, unique ID of the volume.

§volume_type: Option<VolumeType>

The type of the volume.

§lifecycle_transition_reason: Option<LifecycleTransitionReason>

The reason why the volume lifecycle status changed.

§administrative_actions: Option<Vec<AdministrativeAction>>

A list of administrative actions for the volume that are in process or waiting to be processed. Administrative actions describe changes to the volume that you have initiated using the UpdateVolume action.

§open_zfs_configuration: Option<OpenZfsVolumeConfiguration>

The configuration of an Amazon FSx for OpenZFS volume.

Implementations§

source§

impl Volume

source

pub fn creation_time(&self) -> Option<&DateTime>

The time that the resource was created, in seconds (since 1970-01-01T00:00:00Z), also known as Unix time.

source

pub fn file_system_id(&self) -> Option<&str>

The globally unique ID of the file system, assigned by Amazon FSx.

source

pub fn lifecycle(&self) -> Option<&VolumeLifecycle>

The lifecycle status of the volume.

  • AVAILABLE - The volume is fully available for use.

  • CREATED - The volume has been created.

  • CREATING - Amazon FSx is creating the new volume.

  • DELETING - Amazon FSx is deleting an existing volume.

  • FAILED - Amazon FSx was unable to create the volume.

  • MISCONFIGURED - The volume is in a failed but recoverable state.

  • PENDING - Amazon FSx hasn't started creating the volume.

source

pub fn name(&self) -> Option<&str>

The name of the volume.

source

pub fn ontap_configuration(&self) -> Option<&OntapVolumeConfiguration>

The configuration of an Amazon FSx for NetApp ONTAP volume.

source

pub fn resource_arn(&self) -> Option<&str>

The Amazon Resource Name (ARN) for a given resource. ARNs uniquely identify Amazon Web Services resources. We require an ARN when you need to specify a resource unambiguously across all of Amazon Web Services. For more information, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference.

source

pub fn tags(&self) -> &[Tag]

A list of Tag values, with a maximum of 50 elements.

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().

source

pub fn volume_id(&self) -> Option<&str>

The system-generated, unique ID of the volume.

source

pub fn volume_type(&self) -> Option<&VolumeType>

The type of the volume.

source

pub fn lifecycle_transition_reason(&self) -> Option<&LifecycleTransitionReason>

The reason why the volume lifecycle status changed.

source

pub fn administrative_actions(&self) -> &[AdministrativeAction]

A list of administrative actions for the volume that are in process or waiting to be processed. Administrative actions describe changes to the volume that you have initiated using the UpdateVolume action.

If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .administrative_actions.is_none().

source

pub fn open_zfs_configuration(&self) -> Option<&OpenZfsVolumeConfiguration>

The configuration of an Amazon FSx for OpenZFS volume.

source§

impl Volume

source

pub fn builder() -> VolumeBuilder

Creates a new builder-style object to manufacture Volume.

Trait Implementations§

source§

impl Clone for Volume

source§

fn clone(&self) -> Volume

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Volume

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl PartialEq for Volume

source§

fn eq(&self, other: &Volume) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl StructuralPartialEq for Volume

Auto Trait Implementations§

§

impl Freeze for Volume

§

impl RefUnwindSafe for Volume

§

impl Send for Volume

§

impl Sync for Volume

§

impl Unpin for Volume

§

impl UnwindSafe for Volume

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts 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 more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts 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
source§

impl<Unshared, Shared> IntoShared<Shared> for Unshared
where Shared: FromUnshared<Unshared>,

source§

fn into_shared(self) -> Shared

Creates a shared type from an unshared type.
source§

impl<T> Same for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> WithSubscriber for T

source§

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
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more