Struct aws_sdk_dlm::types::RetentionArchiveTier
source · #[non_exhaustive]pub struct RetentionArchiveTier {
pub count: Option<i32>,
pub interval: Option<i32>,
pub interval_unit: Option<RetentionIntervalUnitValues>,
}
Expand description
[Custom snapshot policies only] Describes the retention rule for archived snapshots. Once the archive retention threshold is met, the snapshots are permanently deleted from the archive tier.
The archive retention rule must retain snapshots in the archive tier for a minimum of 90 days.
For count-based schedules, you must specify Count. For age-based schedules, you must specify Interval and IntervalUnit.
For more information about using snapshot archiving, see Considerations for snapshot lifecycle policies.
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.count: Option<i32>
The maximum number of snapshots to retain in the archive storage tier for each volume. The count must ensure that each snapshot remains in the archive tier for at least 90 days. For example, if the schedule creates snapshots every 30 days, you must specify a count of 3 or more to ensure that each snapshot is archived for at least 90 days.
interval: Option<i32>
Specifies the period of time to retain snapshots in the archive tier. After this period expires, the snapshot is permanently deleted.
interval_unit: Option<RetentionIntervalUnitValues>
The unit of time in which to measure the Interval. For example, to retain a snapshots in the archive tier for 6 months, specify Interval=6
and IntervalUnit=MONTHS
.
Implementations§
source§impl RetentionArchiveTier
impl RetentionArchiveTier
sourcepub fn count(&self) -> Option<i32>
pub fn count(&self) -> Option<i32>
The maximum number of snapshots to retain in the archive storage tier for each volume. The count must ensure that each snapshot remains in the archive tier for at least 90 days. For example, if the schedule creates snapshots every 30 days, you must specify a count of 3 or more to ensure that each snapshot is archived for at least 90 days.
sourcepub fn interval(&self) -> Option<i32>
pub fn interval(&self) -> Option<i32>
Specifies the period of time to retain snapshots in the archive tier. After this period expires, the snapshot is permanently deleted.
sourcepub fn interval_unit(&self) -> Option<&RetentionIntervalUnitValues>
pub fn interval_unit(&self) -> Option<&RetentionIntervalUnitValues>
The unit of time in which to measure the Interval. For example, to retain a snapshots in the archive tier for 6 months, specify Interval=6
and IntervalUnit=MONTHS
.
source§impl RetentionArchiveTier
impl RetentionArchiveTier
sourcepub fn builder() -> RetentionArchiveTierBuilder
pub fn builder() -> RetentionArchiveTierBuilder
Creates a new builder-style object to manufacture RetentionArchiveTier
.
Trait Implementations§
source§impl Clone for RetentionArchiveTier
impl Clone for RetentionArchiveTier
source§fn clone(&self) -> RetentionArchiveTier
fn clone(&self) -> RetentionArchiveTier
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for RetentionArchiveTier
impl Debug for RetentionArchiveTier
source§impl PartialEq for RetentionArchiveTier
impl PartialEq for RetentionArchiveTier
source§fn eq(&self, other: &RetentionArchiveTier) -> bool
fn eq(&self, other: &RetentionArchiveTier) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for RetentionArchiveTier
Auto Trait Implementations§
impl Freeze for RetentionArchiveTier
impl RefUnwindSafe for RetentionArchiveTier
impl Send for RetentionArchiveTier
impl Sync for RetentionArchiveTier
impl Unpin for RetentionArchiveTier
impl UnwindSafe for RetentionArchiveTier
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