Skip to content
v2.278.0

BackupPlanCopyActionProps Struct ​

Properties for a BackupPlanCopyAction.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as cdk from 'aws-cdk-lib';
import { aws_backup as backup } from 'aws-cdk-lib';
import { aws_backup as interfaces_backup } from 'aws-cdk-lib/interfaces';

declare const backupVaultRef: interfaces_backup.IBackupVaultRef;
const backupPlanCopyActionProps: backup.BackupPlanCopyActionProps = {
  destinationBackupVault: backupVaultRef,

  // the properties below are optional
  deleteAfter: cdk.Duration.minutes(30),
  moveToColdStorageAfter: cdk.Duration.minutes(30),
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk as cdk
from aws_cdk import aws_backup as backup
from aws_cdk.interfaces import aws_backup as interfaces_backup

# backup_vault_ref: interfaces_backup.IBackupVaultRef

backup_plan_copy_action_props = backup.BackupPlanCopyActionProps(
    destination_backup_vault=backup_vault_ref,

    # the properties below are optional
    delete_after=cdk.Duration.minutes(30),
    move_to_cold_storage_after=cdk.Duration.minutes(30)
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.*;
import software.amazon.awscdk.services.backup.*;
import software.amazon.awscdk.interfaces.backup.*;

IBackupVaultRef backupVaultRef;

BackupPlanCopyActionProps backupPlanCopyActionProps = BackupPlanCopyActionProps.builder()
        .destinationBackupVault(backupVaultRef)

        // the properties below are optional
        .deleteAfter(Duration.minutes(30))
        .moveToColdStorageAfter(Duration.minutes(30))
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK;
using Amazon.CDK.AWS.Backup;
using Amazon.CDK.Interfaces.Backup;

IBackupVaultRef backupVaultRef;

var backupPlanCopyActionProps = new BackupPlanCopyActionProps {
    DestinationBackupVault = backupVaultRef,

    // the properties below are optional
    DeleteAfter = Duration.Minutes(30),
    MoveToColdStorageAfter = Duration.Minutes(30)
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
import "github.com/aws/aws-cdk-go/awscdk"
import "github.com/aws/aws-cdk-go/awscdk"

var backupVaultRef IBackupVaultRef

backupPlanCopyActionProps := &BackupPlanCopyActionProps{
	DestinationBackupVault: backupVaultRef,

	// the properties below are optional
	DeleteAfter: cdk.Duration_Minutes(jsii.Number(30)),
	MoveToColdStorageAfter: cdk.Duration_*Minutes(jsii.Number(30)),
}

Properties ​

deleteAfteroptionalDurationdelete_afteroptionalDurationdeleteAfteroptionalDurationDeleteAfteroptionalDurationDeleteAfteroptionalDuration #
Specifies the duration after creation that a copied recovery point is deleted from the destination vault.

Default: recovery point is never deleted

Must be at least 90 days greater than moveToColdStorageAfter, if specified.

destinationBackupVaultIBackupVaultRefdestination_backup_vaultIBackupVaultRefdestinationBackupVaultIBackupVaultRefDestinationBackupVaultIBackupVaultRefDestinationBackupVaultIBackupVaultRef required #
Destination Vault for recovery points to be copied into.
moveToColdStorageAfteroptionalDurationmove_to_cold_storage_afteroptionalDurationmoveToColdStorageAfteroptionalDurationMoveToColdStorageAfteroptionalDurationMoveToColdStorageAfteroptionalDuration #
Specifies the duration after creation that a copied recovery point is moved to cold storage.

Default: recovery point is never moved to cold storage