Struct aws_sdk_backup::types::Lifecycle
source · #[non_exhaustive]pub struct Lifecycle {
pub move_to_cold_storage_after_days: Option<i64>,
pub delete_after_days: Option<i64>,
pub opt_in_to_archive_for_supported_resources: Option<bool>,
}
Expand description
Contains an array of Transition
objects specifying how long in days before a recovery point transitions to cold storage or is deleted.
Backups transitioned to cold storage must be stored in cold storage for a minimum of 90 days. Therefore, on the console, 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_after_days: Option<i64>
Specifies the number of days after creation that a recovery point is moved to cold storage.
delete_after_days: Option<i64>
Specifies the number of days after creation that a recovery point is deleted. Must be greater than 90 days plus MoveToColdStorageAfterDays
.
opt_in_to_archive_for_supported_resources: Option<bool>
Optional Boolean. If this is true, this setting will instruct your backup plan to transition supported resources to archive (cold) storage tier in accordance with your lifecycle settings.
Implementations§
source§impl Lifecycle
impl Lifecycle
sourcepub fn move_to_cold_storage_after_days(&self) -> Option<i64>
pub fn move_to_cold_storage_after_days(&self) -> Option<i64>
Specifies the number of days after creation that a recovery point is moved to cold storage.
sourcepub fn delete_after_days(&self) -> Option<i64>
pub fn delete_after_days(&self) -> Option<i64>
Specifies the number of days after creation that a recovery point is deleted. Must be greater than 90 days plus MoveToColdStorageAfterDays
.
sourcepub fn opt_in_to_archive_for_supported_resources(&self) -> Option<bool>
pub fn opt_in_to_archive_for_supported_resources(&self) -> Option<bool>
Optional Boolean. If this is true, this setting will instruct your backup plan to transition supported resources to archive (cold) storage tier in accordance with your lifecycle settings.
Trait Implementations§
source§impl PartialEq for Lifecycle
impl PartialEq for Lifecycle
impl StructuralPartialEq for Lifecycle
Auto Trait Implementations§
impl Freeze for Lifecycle
impl RefUnwindSafe for Lifecycle
impl Send for Lifecycle
impl Sync for Lifecycle
impl Unpin for Lifecycle
impl UnwindSafe for Lifecycle
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