Struct aws_sdk_backup::operation::start_copy_job::StartCopyJobInput
source · #[non_exhaustive]pub struct StartCopyJobInput {
pub recovery_point_arn: Option<String>,
pub source_backup_vault_name: Option<String>,
pub destination_backup_vault_arn: Option<String>,
pub iam_role_arn: Option<String>,
pub idempotency_token: Option<String>,
pub lifecycle: Option<Lifecycle>,
}
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.recovery_point_arn: Option<String>
An ARN that uniquely identifies a recovery point to use for the copy job; for example, arn:aws:backup:us-east-1:123456789012:recovery-point:1EB3B5E7-9EB0-435A-A80B-108B488B0D45.
source_backup_vault_name: Option<String>
The name of a logical source container where backups are stored. Backup vaults are identified by names that are unique to the account used to create them and the Amazon Web Services Region where they are created. They consist of lowercase letters, numbers, and hyphens.
destination_backup_vault_arn: Option<String>
An Amazon Resource Name (ARN) that uniquely identifies a destination backup vault to copy to; for example, arn:aws:backup:us-east-1:123456789012:vault:aBackupVault
.
iam_role_arn: Option<String>
Specifies the IAM role ARN used to copy the target recovery point; for example, arn:aws:iam::123456789012:role/S3Access
.
idempotency_token: Option<String>
A customer-chosen string that you can use to distinguish between otherwise identical calls to StartCopyJob
. Retrying a successful request with the same idempotency token results in a success message with no action taken.
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.
Implementations§
source§impl StartCopyJobInput
impl StartCopyJobInput
sourcepub fn recovery_point_arn(&self) -> Option<&str>
pub fn recovery_point_arn(&self) -> Option<&str>
An ARN that uniquely identifies a recovery point to use for the copy job; for example, arn:aws:backup:us-east-1:123456789012:recovery-point:1EB3B5E7-9EB0-435A-A80B-108B488B0D45.
sourcepub fn source_backup_vault_name(&self) -> Option<&str>
pub fn source_backup_vault_name(&self) -> Option<&str>
The name of a logical source container where backups are stored. Backup vaults are identified by names that are unique to the account used to create them and the Amazon Web Services Region where they are created. They consist of lowercase letters, numbers, and hyphens.
sourcepub fn destination_backup_vault_arn(&self) -> Option<&str>
pub fn destination_backup_vault_arn(&self) -> Option<&str>
An Amazon Resource Name (ARN) that uniquely identifies a destination backup vault to copy to; for example, arn:aws:backup:us-east-1:123456789012:vault:aBackupVault
.
sourcepub fn iam_role_arn(&self) -> Option<&str>
pub fn iam_role_arn(&self) -> Option<&str>
Specifies the IAM role ARN used to copy the target recovery point; for example, arn:aws:iam::123456789012:role/S3Access
.
sourcepub fn idempotency_token(&self) -> Option<&str>
pub fn idempotency_token(&self) -> Option<&str>
A customer-chosen string that you can use to distinguish between otherwise identical calls to StartCopyJob
. Retrying a successful request with the same idempotency token results in a success message with no action taken.
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.
source§impl StartCopyJobInput
impl StartCopyJobInput
sourcepub fn builder() -> StartCopyJobInputBuilder
pub fn builder() -> StartCopyJobInputBuilder
Creates a new builder-style object to manufacture StartCopyJobInput
.
Trait Implementations§
source§impl Clone for StartCopyJobInput
impl Clone for StartCopyJobInput
source§fn clone(&self) -> StartCopyJobInput
fn clone(&self) -> StartCopyJobInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for StartCopyJobInput
impl Debug for StartCopyJobInput
source§impl PartialEq<StartCopyJobInput> for StartCopyJobInput
impl PartialEq<StartCopyJobInput> for StartCopyJobInput
source§fn eq(&self, other: &StartCopyJobInput) -> bool
fn eq(&self, other: &StartCopyJobInput) -> bool
self
and other
values to be equal, and is used
by ==
.