#[non_exhaustive]pub struct OpenZfsOriginSnapshotConfiguration {
pub snapshot_arn: Option<String>,
pub copy_strategy: Option<OpenZfsCopyStrategy>,
}
Expand description
The snapshot configuration used 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>
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 the data from a 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.
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 OpenZfsOriginSnapshotConfiguration
impl OpenZfsOriginSnapshotConfiguration
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>
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 the data from a 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.
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 OpenZfsOriginSnapshotConfiguration
impl OpenZfsOriginSnapshotConfiguration
sourcepub fn builder() -> OpenZfsOriginSnapshotConfigurationBuilder
pub fn builder() -> OpenZfsOriginSnapshotConfigurationBuilder
Creates a new builder-style object to manufacture OpenZfsOriginSnapshotConfiguration
.
Trait Implementations§
source§impl Clone for OpenZfsOriginSnapshotConfiguration
impl Clone for OpenZfsOriginSnapshotConfiguration
source§fn clone(&self) -> OpenZfsOriginSnapshotConfiguration
fn clone(&self) -> OpenZfsOriginSnapshotConfiguration
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl PartialEq for OpenZfsOriginSnapshotConfiguration
impl PartialEq for OpenZfsOriginSnapshotConfiguration
source§fn eq(&self, other: &OpenZfsOriginSnapshotConfiguration) -> bool
fn eq(&self, other: &OpenZfsOriginSnapshotConfiguration) -> bool
self
and other
values to be equal, and is used
by ==
.