Struct aws_sdk_backup::types::CopyAction
source · #[non_exhaustive]pub struct CopyAction {
pub lifecycle: Option<Lifecycle>,
pub destination_backup_vault_arn: String,
}
Expand description
The details of the copy operation.
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.lifecycle: Option<Lifecycle>
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.
destination_backup_vault_arn: String
An Amazon Resource Name (ARN) that uniquely identifies the destination backup vault for the copied backup. For example, arn:aws:backup:us-east-1:123456789012:vault:aBackupVault
.
Implementations§
source§impl CopyAction
impl CopyAction
sourcepub fn lifecycle(&self) -> Option<&Lifecycle>
pub fn lifecycle(&self) -> Option<&Lifecycle>
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.
sourcepub fn destination_backup_vault_arn(&self) -> &str
pub fn destination_backup_vault_arn(&self) -> &str
An Amazon Resource Name (ARN) that uniquely identifies the destination backup vault for the copied backup. For example, arn:aws:backup:us-east-1:123456789012:vault:aBackupVault
.
source§impl CopyAction
impl CopyAction
sourcepub fn builder() -> CopyActionBuilder
pub fn builder() -> CopyActionBuilder
Creates a new builder-style object to manufacture CopyAction
.
Trait Implementations§
source§impl Clone for CopyAction
impl Clone for CopyAction
source§fn clone(&self) -> CopyAction
fn clone(&self) -> CopyAction
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CopyAction
impl Debug for CopyAction
source§impl PartialEq for CopyAction
impl PartialEq for CopyAction
source§fn eq(&self, other: &CopyAction) -> bool
fn eq(&self, other: &CopyAction) -> bool
self
and other
values to be equal, and is used
by ==
.