Struct aws_sdk_dlm::types::CrossRegionCopyRetainRule
source · #[non_exhaustive]pub struct CrossRegionCopyRetainRule {
pub interval: Option<i32>,
pub interval_unit: Option<RetentionIntervalUnitValues>,
}
Expand description
Specifies a retention rule for cross-Region snapshot copies created by snapshot or event-based policies, or cross-Region AMI copies created by AMI policies. After the retention period expires, the cross-Region copy is deleted.
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.interval: Option<i32>
The amount of time to retain a cross-Region snapshot or AMI copy. The maximum is 100 years. This is equivalent to 1200 months, 5200 weeks, or 36500 days.
interval_unit: Option<RetentionIntervalUnitValues>
The unit of time for time-based retention. For example, to retain a cross-Region copy for 3 months, specify Interval=3
and IntervalUnit=MONTHS
.
Implementations§
source§impl CrossRegionCopyRetainRule
impl CrossRegionCopyRetainRule
sourcepub fn interval(&self) -> Option<i32>
pub fn interval(&self) -> Option<i32>
The amount of time to retain a cross-Region snapshot or AMI copy. The maximum is 100 years. This is equivalent to 1200 months, 5200 weeks, or 36500 days.
sourcepub fn interval_unit(&self) -> Option<&RetentionIntervalUnitValues>
pub fn interval_unit(&self) -> Option<&RetentionIntervalUnitValues>
The unit of time for time-based retention. For example, to retain a cross-Region copy for 3 months, specify Interval=3
and IntervalUnit=MONTHS
.
source§impl CrossRegionCopyRetainRule
impl CrossRegionCopyRetainRule
sourcepub fn builder() -> CrossRegionCopyRetainRuleBuilder
pub fn builder() -> CrossRegionCopyRetainRuleBuilder
Creates a new builder-style object to manufacture CrossRegionCopyRetainRule
.
Trait Implementations§
source§impl Clone for CrossRegionCopyRetainRule
impl Clone for CrossRegionCopyRetainRule
source§fn clone(&self) -> CrossRegionCopyRetainRule
fn clone(&self) -> CrossRegionCopyRetainRule
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CrossRegionCopyRetainRule
impl Debug for CrossRegionCopyRetainRule
source§impl PartialEq for CrossRegionCopyRetainRule
impl PartialEq for CrossRegionCopyRetainRule
source§fn eq(&self, other: &CrossRegionCopyRetainRule) -> bool
fn eq(&self, other: &CrossRegionCopyRetainRule) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for CrossRegionCopyRetainRule
Auto Trait Implementations§
impl Freeze for CrossRegionCopyRetainRule
impl RefUnwindSafe for CrossRegionCopyRetainRule
impl Send for CrossRegionCopyRetainRule
impl Sync for CrossRegionCopyRetainRule
impl Unpin for CrossRegionCopyRetainRule
impl UnwindSafe for CrossRegionCopyRetainRule
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