aws-cdk-lib.aws_backup.CfnBackupPlan.BackupRuleResourceTypeProperty

interface BackupRuleResourceTypeProperty

LanguageType name
.NETAmazon.CDK.AWS.Backup.CfnBackupPlan.BackupRuleResourceTypeProperty
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsbackup#CfnBackupPlan_BackupRuleResourceTypeProperty
Javasoftware.amazon.awscdk.services.backup.CfnBackupPlan.BackupRuleResourceTypeProperty
Pythonaws_cdk.aws_backup.CfnBackupPlan.BackupRuleResourceTypeProperty
TypeScript aws-cdk-lib » aws_backup » CfnBackupPlan » BackupRuleResourceTypeProperty

Specifies an object containing properties used to schedule a task to back up a selection of resources.

Example

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_backup as backup } from 'aws-cdk-lib';
const backupRuleResourceTypeProperty: backup.CfnBackupPlan.BackupRuleResourceTypeProperty = {
  ruleName: 'ruleName',
  targetBackupVault: 'targetBackupVault',

  // the properties below are optional
  completionWindowMinutes: 123,
  copyActions: [{
    destinationBackupVaultArn: 'destinationBackupVaultArn',

    // the properties below are optional
    lifecycle: {
      deleteAfterDays: 123,
      moveToColdStorageAfterDays: 123,
    },
  }],
  enableContinuousBackup: false,
  lifecycle: {
    deleteAfterDays: 123,
    moveToColdStorageAfterDays: 123,
  },
  recoveryPointTags: {
    recoveryPointTagsKey: 'recoveryPointTags',
  },
  scheduleExpression: 'scheduleExpression',
  startWindowMinutes: 123,
};

Properties

NameTypeDescription
ruleNamestringA display name for a backup rule.
targetBackupVaultstringThe name of a logical container where backups are stored.
completionWindowMinutes?numberA value in minutes after a backup job is successfully started before it must be completed or it is canceled by AWS Backup .
copyActions?IResolvable | IResolvable | CopyActionResourceTypeProperty[]An array of CopyAction objects, which contains the details of the copy operation.
enableContinuousBackup?boolean | IResolvableEnables continuous backup and point-in-time restores (PITR).
lifecycle?IResolvable | LifecycleResourceTypePropertyThe lifecycle defines when a protected resource is transitioned to cold storage and when it expires.
recoveryPointTags?IResolvable | { [string]: string }To help organize your resources, you can assign your own metadata to the resources that you create.
scheduleExpression?stringA CRON expression specifying when AWS Backup initiates a backup job.
startWindowMinutes?numberAn optional value that specifies a period of time in minutes after a backup is scheduled before a job is canceled if it doesn't start successfully.

ruleName

Type: string

A display name for a backup rule.


targetBackupVault

Type: string

The name of a logical container where backups are stored.

Backup vaults are identified by names that are unique to the account used to create them and the AWS Region where they are created. They consist of letters, numbers, and hyphens.


completionWindowMinutes?

Type: number (optional)

A value in minutes after a backup job is successfully started before it must be completed or it is canceled by AWS Backup .


copyActions?

Type: IResolvable | IResolvable | CopyActionResourceTypeProperty[] (optional)

An array of CopyAction objects, which contains the details of the copy operation.


enableContinuousBackup?

Type: boolean | IResolvable (optional)

Enables continuous backup and point-in-time restores (PITR).


lifecycle?

Type: IResolvable | LifecycleResourceTypeProperty (optional)

The lifecycle defines when a protected resource is transitioned to cold storage and when it expires.

AWS Backup transitions and expires backups automatically according to the lifecycle that you define.


recoveryPointTags?

Type: IResolvable | { [string]: string } (optional)

To help organize your resources, you can assign your own metadata to the resources that you create.

Each tag is a key-value pair.


scheduleExpression?

Type: string (optional)

A CRON expression specifying when AWS Backup initiates a backup job.


startWindowMinutes?

Type: number (optional)

An optional value that specifies a period of time in minutes after a backup is scheduled before a job is canceled if it doesn't start successfully.

If this value is included, it must be at least 60 minutes to avoid errors.