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>,
}
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
.
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
.