@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:36.849Z") @Stability(value=Stable) public interface BackupPlanRuleProps extends software.amazon.jsii.JsiiSerializable
Example:
BackupPlan plan;
plan.addRule(BackupPlanRule.Builder.create()
.completionWindow(Duration.hours(2))
.startWindow(Duration.hours(1))
.scheduleExpression(Schedule.cron(CronOptions.builder() // Only cron expressions are supported
.day("15")
.hour("3")
.minute("30").build()))
.moveToColdStorageAfter(Duration.days(30))
.build());
| Modifier and Type | Interface and Description |
|---|---|
static class |
BackupPlanRuleProps.Builder
A builder for
BackupPlanRuleProps |
static class |
BackupPlanRuleProps.Jsii$Proxy
An implementation for
BackupPlanRuleProps |
| Modifier and Type | Method and Description |
|---|---|
static BackupPlanRuleProps.Builder |
builder() |
default IBackupVault |
getBackupVault()
The backup vault where backups are.
|
default Duration |
getCompletionWindow()
The duration after a backup job is successfully started before it must be completed or it is canceled by AWS Backup.
|
default Duration |
getDeleteAfter()
Specifies the duration after creation that a recovery point is deleted.
|
default Boolean |
getEnableContinuousBackup()
Enables continuous backup and point-in-time restores (PITR).
|
default Duration |
getMoveToColdStorageAfter()
Specifies the duration after creation that a recovery point is moved to cold storage.
|
default String |
getRuleName()
A display name for the backup rule.
|
default Schedule |
getScheduleExpression()
A CRON expression specifying when AWS Backup initiates a backup job.
|
default Duration |
getStartWindow()
The duration after a backup is scheduled before a job is canceled if it doesn't start successfully.
|
@Stability(value=Stable) @Nullable default IBackupVault getBackupVault()
Default: - use the vault defined at the plan level. If not defined a new common vault for the plan will be created
@Stability(value=Stable) @Nullable default Duration getCompletionWindow()
Default: - 8 hours
@Stability(value=Stable) @Nullable default Duration getDeleteAfter()
Must be greater than moveToColdStorageAfter.
Default: - recovery point is never deleted
@Stability(value=Stable) @Nullable default Boolean getEnableContinuousBackup()
Property deleteAfter defines the retention period for the backup. It is mandatory if PITR is enabled.
If no value is specified, the retention period is set to 35 days which is the maximum retention period supported by PITR.
Property moveToColdStorageAfter must not be specified because PITR does not support this option.
Default: false
@Stability(value=Stable) @Nullable default Duration getMoveToColdStorageAfter()
Default: - recovery point is never moved to cold storage
@Stability(value=Stable) @Nullable default String getRuleName()
Default: - a CDK generated name
@Stability(value=Stable) @Nullable default Schedule getScheduleExpression()
Default: - no schedule
@Stability(value=Stable) @Nullable default Duration getStartWindow()
Default: - 8 hours
@Stability(value=Stable) static BackupPlanRuleProps.Builder builder()
BackupPlanRuleProps.Builder of BackupPlanRulePropsCopyright © 2022. All rights reserved.