Struct aws_sdk_backup::types::CalculatedLifecycle
source · #[non_exhaustive]pub struct CalculatedLifecycle {
pub move_to_cold_storage_at: Option<DateTime>,
pub delete_at: Option<DateTime>,
}
Expand description
Contains DeleteAt
and MoveToColdStorageAt
timestamps, which are used to specify a lifecycle for a recovery point.
The lifecycle defines when a protected resource is transitioned to cold storage and when it expires. Backup transitions and expires backups automatically according to the lifecycle that you define.
Backups transitioned to cold storage must be stored in cold storage for a minimum of 90 days. Therefore, the “retention” setting must be 90 days greater than the “transition to cold after days” setting. The “transition to cold after days” setting cannot be changed after a backup has been transitioned to cold.
Resource types that are able to be transitioned to cold storage are listed in the "Lifecycle to cold storage" section of the Feature availability by resource table. Backup ignores this expression for other resource types.
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.move_to_cold_storage_at: Option<DateTime>
A timestamp that specifies when to transition a recovery point to cold storage.
delete_at: Option<DateTime>
A timestamp that specifies when to delete a recovery point.
Implementations§
source§impl CalculatedLifecycle
impl CalculatedLifecycle
sourcepub fn builder() -> CalculatedLifecycleBuilder
pub fn builder() -> CalculatedLifecycleBuilder
Creates a new builder-style object to manufacture CalculatedLifecycle
.
Trait Implementations§
source§impl Clone for CalculatedLifecycle
impl Clone for CalculatedLifecycle
source§fn clone(&self) -> CalculatedLifecycle
fn clone(&self) -> CalculatedLifecycle
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CalculatedLifecycle
impl Debug for CalculatedLifecycle
source§impl PartialEq for CalculatedLifecycle
impl PartialEq for CalculatedLifecycle
impl StructuralPartialEq for CalculatedLifecycle
Auto Trait Implementations§
impl Freeze for CalculatedLifecycle
impl RefUnwindSafe for CalculatedLifecycle
impl Send for CalculatedLifecycle
impl Sync for CalculatedLifecycle
impl Unpin for CalculatedLifecycle
impl UnwindSafe for CalculatedLifecycle
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)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