@Generated(value="jsii-pacmak/1.47.0 (build 86d2c33)", date="2021-12-22T10:27:16.155Z") @Stability(value=Stable) public interface BackupPlanRuleProps extends software.amazon.jsii.JsiiSerializable
Example:
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 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 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 © 2021. All rights reserved.