Struct aws_sdk_dlm::types::CrossRegionCopyDeprecateRule
source · #[non_exhaustive]pub struct CrossRegionCopyDeprecateRule {
pub interval: Option<i32>,
pub interval_unit: Option<RetentionIntervalUnitValues>,
}
Expand description
[Custom AMI policies only] Specifies an AMI deprecation rule for cross-Region AMI copies created by an AMI policy.
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 period after which to deprecate the cross-Region AMI copies. The period must be less than or equal to the cross-Region AMI copy retention period, and it can't be greater than 10 years. This is equivalent to 120 months, 520 weeks, or 3650 days.
interval_unit: Option<RetentionIntervalUnitValues>
The unit of time in which to measure the Interval. For example, to deprecate a cross-Region AMI copy after 3 months, specify Interval=3
and IntervalUnit=MONTHS
.
Implementations§
source§impl CrossRegionCopyDeprecateRule
impl CrossRegionCopyDeprecateRule
sourcepub fn interval(&self) -> Option<i32>
pub fn interval(&self) -> Option<i32>
The period after which to deprecate the cross-Region AMI copies. The period must be less than or equal to the cross-Region AMI copy retention period, and it can't be greater than 10 years. This is equivalent to 120 months, 520 weeks, or 3650 days.
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 deprecate a cross-Region AMI copy after 3 months, specify Interval=3
and IntervalUnit=MONTHS
.
source§impl CrossRegionCopyDeprecateRule
impl CrossRegionCopyDeprecateRule
sourcepub fn builder() -> CrossRegionCopyDeprecateRuleBuilder
pub fn builder() -> CrossRegionCopyDeprecateRuleBuilder
Creates a new builder-style object to manufacture CrossRegionCopyDeprecateRule
.
Trait Implementations§
source§impl Clone for CrossRegionCopyDeprecateRule
impl Clone for CrossRegionCopyDeprecateRule
source§fn clone(&self) -> CrossRegionCopyDeprecateRule
fn clone(&self) -> CrossRegionCopyDeprecateRule
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CrossRegionCopyDeprecateRule
impl Debug for CrossRegionCopyDeprecateRule
source§impl PartialEq for CrossRegionCopyDeprecateRule
impl PartialEq for CrossRegionCopyDeprecateRule
source§fn eq(&self, other: &CrossRegionCopyDeprecateRule) -> bool
fn eq(&self, other: &CrossRegionCopyDeprecateRule) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for CrossRegionCopyDeprecateRule
Auto Trait Implementations§
impl Freeze for CrossRegionCopyDeprecateRule
impl RefUnwindSafe for CrossRegionCopyDeprecateRule
impl Send for CrossRegionCopyDeprecateRule
impl Sync for CrossRegionCopyDeprecateRule
impl Unpin for CrossRegionCopyDeprecateRule
impl UnwindSafe for CrossRegionCopyDeprecateRule
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