# BackupPlanCopyActionProps

Properties for a BackupPlanCopyAction.

- Source: [`aws-backup/lib/rule.ts`](https://github.com/aws/aws-cdk/blob/v2.278.0/packages/aws-cdk-lib/aws-backup/lib/rule.ts#L109)
- Type last changed: v2.234.0 · 8 Jan 2026

## Example

TypeScript:

```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:

```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:

```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();
```

C# / .NET:

```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)
};
```

Golang:

```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

- `deleteAfter`: [Duration](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.Duration.html) — 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.

- `destinationBackupVault`: [IBackupVaultRef](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.interfaces.aws_backup.IBackupVaultRef.html) (required) — Destination Vault for recovery points to be copied into.

- `moveToColdStorageAfter`: [Duration](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.Duration.html) — Specifies the duration after creation that a copied recovery point is moved to cold storage.

  **Default:** recovery point is never moved to cold storage
