aws_sdk_backup/client/
start_copy_job.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3    /// Constructs a fluent builder for the [`StartCopyJob`](crate::operation::start_copy_job::builders::StartCopyJobFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`recovery_point_arn(impl Into<String>)`](crate::operation::start_copy_job::builders::StartCopyJobFluentBuilder::recovery_point_arn) / [`set_recovery_point_arn(Option<String>)`](crate::operation::start_copy_job::builders::StartCopyJobFluentBuilder::set_recovery_point_arn):<br>required: **true**<br><p>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.</p><br>
7    ///   - [`source_backup_vault_name(impl Into<String>)`](crate::operation::start_copy_job::builders::StartCopyJobFluentBuilder::source_backup_vault_name) / [`set_source_backup_vault_name(Option<String>)`](crate::operation::start_copy_job::builders::StartCopyJobFluentBuilder::set_source_backup_vault_name):<br>required: **true**<br><p>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.</p><br>
8    ///   - [`destination_backup_vault_arn(impl Into<String>)`](crate::operation::start_copy_job::builders::StartCopyJobFluentBuilder::destination_backup_vault_arn) / [`set_destination_backup_vault_arn(Option<String>)`](crate::operation::start_copy_job::builders::StartCopyJobFluentBuilder::set_destination_backup_vault_arn):<br>required: **true**<br><p>An Amazon Resource Name (ARN) that uniquely identifies a destination backup vault to copy to; for example, <code>arn:aws:backup:us-east-1:123456789012:backup-vault:aBackupVault</code>.</p><br>
9    ///   - [`iam_role_arn(impl Into<String>)`](crate::operation::start_copy_job::builders::StartCopyJobFluentBuilder::iam_role_arn) / [`set_iam_role_arn(Option<String>)`](crate::operation::start_copy_job::builders::StartCopyJobFluentBuilder::set_iam_role_arn):<br>required: **true**<br><p>Specifies the IAM role ARN used to copy the target recovery point; for example, <code>arn:aws:iam::123456789012:role/S3Access</code>.</p><br>
10    ///   - [`idempotency_token(impl Into<String>)`](crate::operation::start_copy_job::builders::StartCopyJobFluentBuilder::idempotency_token) / [`set_idempotency_token(Option<String>)`](crate::operation::start_copy_job::builders::StartCopyJobFluentBuilder::set_idempotency_token):<br>required: **false**<br><p>A customer-chosen string that you can use to distinguish between otherwise identical calls to <code>StartCopyJob</code>. Retrying a successful request with the same idempotency token results in a success message with no action taken.</p><br>
11    ///   - [`lifecycle(Lifecycle)`](crate::operation::start_copy_job::builders::StartCopyJobFluentBuilder::lifecycle) / [`set_lifecycle(Option<Lifecycle>)`](crate::operation::start_copy_job::builders::StartCopyJobFluentBuilder::set_lifecycle):<br>required: **false**<br><p>Specifies the time period, in days, before a recovery point transitions to cold storage or is deleted.</p> <p>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 can't be changed after a backup has been transitioned to cold.</p> <p>Resource types that can transition to cold storage are listed in the <a href="https://docs.aws.amazon.com/aws-backup/latest/devguide/backup-feature-availability.html#features-by-resource">Feature availability by resource</a> table. Backup ignores this expression for other resource types.</p> <p>To remove the existing lifecycle and retention periods and keep your recovery points indefinitely, specify -1 for <code>MoveToColdStorageAfterDays</code> and <code>DeleteAfterDays</code>.</p><br>
12    /// - On success, responds with [`StartCopyJobOutput`](crate::operation::start_copy_job::StartCopyJobOutput) with field(s):
13    ///   - [`copy_job_id(Option<String>)`](crate::operation::start_copy_job::StartCopyJobOutput::copy_job_id): <p>Uniquely identifies a copy job.</p>
14    ///   - [`creation_date(Option<DateTime>)`](crate::operation::start_copy_job::StartCopyJobOutput::creation_date): <p>The date and time that a copy job is created, in Unix format and Coordinated Universal Time (UTC). The value of <code>CreationDate</code> is accurate to milliseconds. For example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.</p>
15    ///   - [`is_parent(bool)`](crate::operation::start_copy_job::StartCopyJobOutput::is_parent): <p>This is a returned boolean value indicating this is a parent (composite) copy job.</p>
16    /// - On failure, responds with [`SdkError<StartCopyJobError>`](crate::operation::start_copy_job::StartCopyJobError)
17    pub fn start_copy_job(&self) -> crate::operation::start_copy_job::builders::StartCopyJobFluentBuilder {
18        crate::operation::start_copy_job::builders::StartCopyJobFluentBuilder::new(self.handle.clone())
19    }
20}