#[non_exhaustive]pub struct CreateOpenZfsOriginSnapshotConfiguration {
pub snapshot_arn: Option<String>,
pub copy_strategy: Option<OpenZfsCopyStrategy>,
}
Expand description
The snapshot configuration to use when creating an Amazon FSx for OpenZFS volume from a snapshot.
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.snapshot_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.
copy_strategy: Option<OpenZfsCopyStrategy>
Specifies the strategy used when copying data from the snapshot to the new volume.
-
CLONE
- The new volume references the data in the origin snapshot. Cloning a snapshot is faster than copying data from the snapshot to a new volume and doesn't consume disk throughput. However, the origin snapshot can't be deleted if there is a volume using its copied data. -
FULL_COPY
- Copies all data from the snapshot to the new volume.Specify this option to create the volume from a snapshot on another FSx for OpenZFS file system.
The INCREMENTAL_COPY
option is only for updating an existing volume by using a snapshot from another FSx for OpenZFS file system. For more information, see CopySnapshotAndUpdateVolume.
Implementations§
source§impl CreateOpenZfsOriginSnapshotConfiguration
impl CreateOpenZfsOriginSnapshotConfiguration
sourcepub fn snapshot_arn(&self) -> Option<&str>
pub fn snapshot_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.
sourcepub fn copy_strategy(&self) -> Option<&OpenZfsCopyStrategy>
pub fn copy_strategy(&self) -> Option<&OpenZfsCopyStrategy>
Specifies the strategy used when copying data from the snapshot to the new volume.
-
CLONE
- The new volume references the data in the origin snapshot. Cloning a snapshot is faster than copying data from the snapshot to a new volume and doesn't consume disk throughput. However, the origin snapshot can't be deleted if there is a volume using its copied data. -
FULL_COPY
- Copies all data from the snapshot to the new volume.Specify this option to create the volume from a snapshot on another FSx for OpenZFS file system.
The INCREMENTAL_COPY
option is only for updating an existing volume by using a snapshot from another FSx for OpenZFS file system. For more information, see CopySnapshotAndUpdateVolume.
source§impl CreateOpenZfsOriginSnapshotConfiguration
impl CreateOpenZfsOriginSnapshotConfiguration
sourcepub fn builder() -> CreateOpenZfsOriginSnapshotConfigurationBuilder
pub fn builder() -> CreateOpenZfsOriginSnapshotConfigurationBuilder
Creates a new builder-style object to manufacture CreateOpenZfsOriginSnapshotConfiguration
.
Trait Implementations§
source§impl Clone for CreateOpenZfsOriginSnapshotConfiguration
impl Clone for CreateOpenZfsOriginSnapshotConfiguration
source§fn clone(&self) -> CreateOpenZfsOriginSnapshotConfiguration
fn clone(&self) -> CreateOpenZfsOriginSnapshotConfiguration
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl PartialEq for CreateOpenZfsOriginSnapshotConfiguration
impl PartialEq for CreateOpenZfsOriginSnapshotConfiguration
source§fn eq(&self, other: &CreateOpenZfsOriginSnapshotConfiguration) -> bool
fn eq(&self, other: &CreateOpenZfsOriginSnapshotConfiguration) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for CreateOpenZfsOriginSnapshotConfiguration
Auto Trait Implementations§
impl Freeze for CreateOpenZfsOriginSnapshotConfiguration
impl RefUnwindSafe for CreateOpenZfsOriginSnapshotConfiguration
impl Send for CreateOpenZfsOriginSnapshotConfiguration
impl Sync for CreateOpenZfsOriginSnapshotConfiguration
impl Unpin for CreateOpenZfsOriginSnapshotConfiguration
impl UnwindSafe for CreateOpenZfsOriginSnapshotConfiguration
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