interface BackupRuleResourceTypeProperty
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.Backup.CfnBackupPlan.BackupRuleResourceTypeProperty |
Java | software.amazon.awscdk.services.backup.CfnBackupPlan.BackupRuleResourceTypeProperty |
Python | aws_cdk.aws_backup.CfnBackupPlan.BackupRuleResourceTypeProperty |
TypeScript | @aws-cdk/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 * as backup from '@aws-cdk/aws-backup';
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
Name | Type | Description |
---|---|---|
rule | string | A display name for a backup rule. |
target | string | The name of a logical container where backups are stored. |
completion | number | A value in minutes after a backup job is successfully started before it must be completed or it is canceled by AWS Backup . |
copy | IResolvable | IResolvable | Copy [] | An array of CopyAction objects, which contains the details of the copy operation. |
enable | boolean | IResolvable | Enables continuous backup and point-in-time restores (PITR). |
lifecycle? | IResolvable | Lifecycle | The lifecycle defines when a protected resource is transitioned to cold storage and when it expires. |
recovery | IResolvable | { [string]: string } | To help organize your resources, you can assign your own metadata to the resources that you create. |
schedule | string | A CRON expression specifying when AWS Backup initiates a backup job. |
start | number | 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. |
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
|
Copy
[]
(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
|
Lifecycle
(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.