Struct aws_sdk_fsx::types::UpdateOntapVolumeConfiguration
source · #[non_exhaustive]pub struct UpdateOntapVolumeConfiguration {
pub junction_path: Option<String>,
pub security_style: Option<SecurityStyle>,
pub size_in_megabytes: Option<i32>,
pub storage_efficiency_enabled: Option<bool>,
pub tiering_policy: Option<TieringPolicy>,
pub snapshot_policy: Option<String>,
pub copy_tags_to_backups: Option<bool>,
pub snaplock_configuration: Option<UpdateSnaplockConfiguration>,
pub size_in_bytes: Option<i64>,
}
Expand description
Used to specify changes to the ONTAP configuration for the volume you are updating.
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.junction_path: Option<String>
Specifies the location in the SVM's namespace where the volume is mounted. The JunctionPath
must have a leading forward slash, such as /vol3
.
security_style: Option<SecurityStyle>
The security style for the volume, which can be UNIX
, NTFS
, or MIXED
.
size_in_megabytes: Option<i32>
Specifies the size of the volume in megabytes.
storage_efficiency_enabled: Option<bool>
Default is false
. Set to true to enable the deduplication, compression, and compaction storage efficiency features on the volume.
tiering_policy: Option<TieringPolicy>
Update the volume's data tiering policy.
snapshot_policy: Option<String>
Specifies the snapshot policy for the volume. There are three built-in snapshot policies:
-
default
: This is the default policy. A maximum of six hourly snapshots taken five minutes past the hour. A maximum of two daily snapshots taken Monday through Saturday at 10 minutes after midnight. A maximum of two weekly snapshots taken every Sunday at 15 minutes after midnight. -
default-1weekly
: This policy is the same as thedefault
policy except that it only retains one snapshot from the weekly schedule. -
none
: This policy does not take any snapshots. This policy can be assigned to volumes to prevent automatic snapshots from being taken.
You can also provide the name of a custom policy that you created with the ONTAP CLI or REST API.
For more information, see Snapshot policies in the Amazon FSx for NetApp ONTAP User Guide.
A boolean flag indicating whether tags for the volume should be copied to backups. This value defaults to false. If it's set to true, all tags for the volume are copied to all automatic and user-initiated backups where the user doesn't specify tags. If this value is true, and you specify one or more tags, only the specified tags are copied to backups. If you specify one or more tags when creating a user-initiated backup, no tags are copied from the volume, regardless of this value.
snaplock_configuration: Option<UpdateSnaplockConfiguration>
The configuration object for updating the SnapLock configuration of an FSx for ONTAP SnapLock volume.
size_in_bytes: Option<i64>
The configured size of the volume, in bytes.
Implementations§
source§impl UpdateOntapVolumeConfiguration
impl UpdateOntapVolumeConfiguration
sourcepub fn junction_path(&self) -> Option<&str>
pub fn junction_path(&self) -> Option<&str>
Specifies the location in the SVM's namespace where the volume is mounted. The JunctionPath
must have a leading forward slash, such as /vol3
.
sourcepub fn security_style(&self) -> Option<&SecurityStyle>
pub fn security_style(&self) -> Option<&SecurityStyle>
The security style for the volume, which can be UNIX
, NTFS
, or MIXED
.
sourcepub fn size_in_megabytes(&self) -> Option<i32>
pub fn size_in_megabytes(&self) -> Option<i32>
Specifies the size of the volume in megabytes.
sourcepub fn storage_efficiency_enabled(&self) -> Option<bool>
pub fn storage_efficiency_enabled(&self) -> Option<bool>
Default is false
. Set to true to enable the deduplication, compression, and compaction storage efficiency features on the volume.
sourcepub fn tiering_policy(&self) -> Option<&TieringPolicy>
pub fn tiering_policy(&self) -> Option<&TieringPolicy>
Update the volume's data tiering policy.
sourcepub fn snapshot_policy(&self) -> Option<&str>
pub fn snapshot_policy(&self) -> Option<&str>
Specifies the snapshot policy for the volume. There are three built-in snapshot policies:
-
default
: This is the default policy. A maximum of six hourly snapshots taken five minutes past the hour. A maximum of two daily snapshots taken Monday through Saturday at 10 minutes after midnight. A maximum of two weekly snapshots taken every Sunday at 15 minutes after midnight. -
default-1weekly
: This policy is the same as thedefault
policy except that it only retains one snapshot from the weekly schedule. -
none
: This policy does not take any snapshots. This policy can be assigned to volumes to prevent automatic snapshots from being taken.
You can also provide the name of a custom policy that you created with the ONTAP CLI or REST API.
For more information, see Snapshot policies in the Amazon FSx for NetApp ONTAP User Guide.
A boolean flag indicating whether tags for the volume should be copied to backups. This value defaults to false. If it's set to true, all tags for the volume are copied to all automatic and user-initiated backups where the user doesn't specify tags. If this value is true, and you specify one or more tags, only the specified tags are copied to backups. If you specify one or more tags when creating a user-initiated backup, no tags are copied from the volume, regardless of this value.
sourcepub fn snaplock_configuration(&self) -> Option<&UpdateSnaplockConfiguration>
pub fn snaplock_configuration(&self) -> Option<&UpdateSnaplockConfiguration>
The configuration object for updating the SnapLock configuration of an FSx for ONTAP SnapLock volume.
sourcepub fn size_in_bytes(&self) -> Option<i64>
pub fn size_in_bytes(&self) -> Option<i64>
The configured size of the volume, in bytes.
source§impl UpdateOntapVolumeConfiguration
impl UpdateOntapVolumeConfiguration
sourcepub fn builder() -> UpdateOntapVolumeConfigurationBuilder
pub fn builder() -> UpdateOntapVolumeConfigurationBuilder
Creates a new builder-style object to manufacture UpdateOntapVolumeConfiguration
.
Trait Implementations§
source§impl Clone for UpdateOntapVolumeConfiguration
impl Clone for UpdateOntapVolumeConfiguration
source§fn clone(&self) -> UpdateOntapVolumeConfiguration
fn clone(&self) -> UpdateOntapVolumeConfiguration
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl PartialEq for UpdateOntapVolumeConfiguration
impl PartialEq for UpdateOntapVolumeConfiguration
source§fn eq(&self, other: &UpdateOntapVolumeConfiguration) -> bool
fn eq(&self, other: &UpdateOntapVolumeConfiguration) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for UpdateOntapVolumeConfiguration
Auto Trait Implementations§
impl Freeze for UpdateOntapVolumeConfiguration
impl RefUnwindSafe for UpdateOntapVolumeConfiguration
impl Send for UpdateOntapVolumeConfiguration
impl Sync for UpdateOntapVolumeConfiguration
impl Unpin for UpdateOntapVolumeConfiguration
impl UnwindSafe for UpdateOntapVolumeConfiguration
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