@Generated(value="jsii-pacmak/1.47.0 (build 86d2c33)", date="2021-12-22T10:27:16.154Z") @Stability(value=Stable) public class BackupPlanRule extends software.amazon.jsii.JsiiObject
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 | Class and Description |
|---|---|
static class |
BackupPlanRule.Builder
A fluent builder for
BackupPlanRule. |
| Modifier | Constructor and Description |
|---|---|
|
BackupPlanRule(BackupPlanRuleProps props) |
protected |
BackupPlanRule(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
BackupPlanRule(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
static BackupPlanRule |
daily()
Daily with 35 days retention.
|
static BackupPlanRule |
daily(IBackupVault backupVault)
Daily with 35 days retention.
|
BackupPlanRuleProps |
getProps()
Rule properties.
|
static BackupPlanRule |
monthly1Year()
Monthly 1 year retention, move to cold storage after 1 month.
|
static BackupPlanRule |
monthly1Year(IBackupVault backupVault)
Monthly 1 year retention, move to cold storage after 1 month.
|
static BackupPlanRule |
monthly5Year()
Monthly 5 year retention, move to cold storage after 3 months.
|
static BackupPlanRule |
monthly5Year(IBackupVault backupVault)
Monthly 5 year retention, move to cold storage after 3 months.
|
static BackupPlanRule |
monthly7Year()
Monthly 7 year retention, move to cold storage after 3 months.
|
static BackupPlanRule |
monthly7Year(IBackupVault backupVault)
Monthly 7 year retention, move to cold storage after 3 months.
|
static BackupPlanRule |
weekly()
Weekly with 3 months retention.
|
static BackupPlanRule |
weekly(IBackupVault backupVault)
Weekly with 3 months retention.
|
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetprotected BackupPlanRule(software.amazon.jsii.JsiiObjectRef objRef)
protected BackupPlanRule(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public BackupPlanRule(@NotNull
BackupPlanRuleProps props)
props - Rule properties. This parameter is required.@Stability(value=Stable) @NotNull public static BackupPlanRule daily(@Nullable IBackupVault backupVault)
backupVault - @Stability(value=Stable) @NotNull public static BackupPlanRule daily()
@Stability(value=Stable) @NotNull public static BackupPlanRule monthly1Year(@Nullable IBackupVault backupVault)
backupVault - @Stability(value=Stable) @NotNull public static BackupPlanRule monthly1Year()
@Stability(value=Stable) @NotNull public static BackupPlanRule monthly5Year(@Nullable IBackupVault backupVault)
backupVault - @Stability(value=Stable) @NotNull public static BackupPlanRule monthly5Year()
@Stability(value=Stable) @NotNull public static BackupPlanRule monthly7Year(@Nullable IBackupVault backupVault)
backupVault - @Stability(value=Stable) @NotNull public static BackupPlanRule monthly7Year()
@Stability(value=Stable) @NotNull public static BackupPlanRule weekly(@Nullable IBackupVault backupVault)
backupVault - @Stability(value=Stable) @NotNull public static BackupPlanRule weekly()
@Stability(value=Stable) @NotNull public BackupPlanRuleProps getProps()
Copyright © 2021. All rights reserved.