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 ==
.