@Stability(value=Experimental) public static final class BackupPlanRule.Builder extends Object implements software.amazon.jsii.Builder<BackupPlanRule>
BackupPlanRule.| Modifier and Type | Method and Description |
|---|---|
BackupPlanRule.Builder |
backupVault(IBackupVault backupVault)
(experimental) The backup vault where backups are.
|
BackupPlanRule |
build() |
BackupPlanRule.Builder |
completionWindow(Duration completionWindow)
(experimental) The duration after a backup job is successfully started before it must be completed or it is canceled by AWS Backup.
|
static BackupPlanRule.Builder |
create() |
BackupPlanRule.Builder |
deleteAfter(Duration deleteAfter)
(experimental) Specifies the duration after creation that a recovery point is deleted.
|
BackupPlanRule.Builder |
moveToColdStorageAfter(Duration moveToColdStorageAfter)
(experimental) Specifies the duration after creation that a recovery point is moved to cold storage.
|
BackupPlanRule.Builder |
ruleName(String ruleName)
(experimental) A display name for the backup rule.
|
BackupPlanRule.Builder |
scheduleExpression(Schedule scheduleExpression)
(experimental) A CRON expression specifying when AWS Backup initiates a backup job.
|
BackupPlanRule.Builder |
startWindow(Duration startWindow)
(experimental) The duration after a backup is scheduled before a job is canceled if it doesn't start successfully.
|
@Stability(value=Experimental) public static BackupPlanRule.Builder create()
BackupPlanRule.Builder.@Stability(value=Experimental) public BackupPlanRule.Builder backupVault(IBackupVault backupVault)
Default: - use the vault defined at the plan level. If not defined a new common vault for the plan will be created
backupVault - The backup vault where backups are. This parameter is required.this@Stability(value=Experimental) public BackupPlanRule.Builder completionWindow(Duration completionWindow)
Default: - 8 hours
completionWindow - The duration after a backup job is successfully started before it must be completed or it is canceled by AWS Backup. This parameter is required.this@Stability(value=Experimental) public BackupPlanRule.Builder deleteAfter(Duration deleteAfter)
Must be greater than moveToColdStorageAfter.
Default: - recovery point is never deleted
deleteAfter - Specifies the duration after creation that a recovery point is deleted. This parameter is required.this@Stability(value=Experimental) public BackupPlanRule.Builder moveToColdStorageAfter(Duration moveToColdStorageAfter)
Default: - recovery point is never moved to cold storage
moveToColdStorageAfter - Specifies the duration after creation that a recovery point is moved to cold storage. This parameter is required.this@Stability(value=Experimental) public BackupPlanRule.Builder ruleName(String ruleName)
Default: - a CDK generated name
ruleName - A display name for the backup rule. This parameter is required.this@Stability(value=Experimental) public BackupPlanRule.Builder scheduleExpression(Schedule scheduleExpression)
Default: - no schedule
scheduleExpression - A CRON expression specifying when AWS Backup initiates a backup job. This parameter is required.this@Stability(value=Experimental) public BackupPlanRule.Builder startWindow(Duration startWindow)
Default: - 8 hours
startWindow - The duration after a backup is scheduled before a job is canceled if it doesn't start successfully. This parameter is required.this@Stability(value=Experimental) public BackupPlanRule build()
build in interface software.amazon.jsii.Builder<BackupPlanRule>Copyright © 2021. All rights reserved.