Class BackupPlanRule
java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.backup.BackupPlanRule
- All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable
@Generated(value="jsii-pacmak/1.126.0 (build 206d44b)",
date="2026-02-03T13:58:16.766Z")
@Stability(Stable)
public class BackupPlanRule
extends software.amazon.jsii.JsiiObject
A backup plan rule.
Example:
BackupPlan plan;
plan.addRule(BackupPlanRule.Builder.create()
.enableContinuousBackup(true)
.deleteAfter(Duration.days(14))
.build());
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedBackupPlanRule(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedBackupPlanRule(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionstatic BackupPlanRuledaily()Daily with 35 days retention.static BackupPlanRuledaily(IBackupVaultRef backupVault) Daily with 35 days retention.getProps()Properties of BackupPlanRule.static BackupPlanRuleMonthly 1 year retention, move to cold storage after 1 month.static BackupPlanRulemonthly1Year(IBackupVaultRef backupVault) Monthly 1 year retention, move to cold storage after 1 month.static BackupPlanRuleMonthly 5 year retention, move to cold storage after 3 months.static BackupPlanRulemonthly5Year(IBackupVaultRef backupVault) Monthly 5 year retention, move to cold storage after 3 months.static BackupPlanRuleMonthly 7 year retention, move to cold storage after 3 months.static BackupPlanRulemonthly7Year(IBackupVaultRef backupVault) Monthly 7 year retention, move to cold storage after 3 months.static BackupPlanRuleweekly()Weekly with 3 months retention.static BackupPlanRuleweekly(IBackupVaultRef backupVault) Weekly with 3 months retention.Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Constructor Details
-
BackupPlanRule
protected BackupPlanRule(software.amazon.jsii.JsiiObjectRef objRef) -
BackupPlanRule
protected BackupPlanRule(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
BackupPlanRule
- Parameters:
props- Rule properties. This parameter is required.
-
-
Method Details
-
daily
@Stability(Stable) @NotNull public static BackupPlanRule daily(@Nullable IBackupVaultRef backupVault) Daily with 35 days retention.- Parameters:
backupVault-
-
daily
Daily with 35 days retention. -
monthly1Year
@Stability(Stable) @NotNull public static BackupPlanRule monthly1Year(@Nullable IBackupVaultRef backupVault) Monthly 1 year retention, move to cold storage after 1 month.- Parameters:
backupVault-
-
monthly1Year
Monthly 1 year retention, move to cold storage after 1 month. -
monthly5Year
@Stability(Stable) @NotNull public static BackupPlanRule monthly5Year(@Nullable IBackupVaultRef backupVault) Monthly 5 year retention, move to cold storage after 3 months.- Parameters:
backupVault-
-
monthly5Year
Monthly 5 year retention, move to cold storage after 3 months. -
monthly7Year
@Stability(Stable) @NotNull public static BackupPlanRule monthly7Year(@Nullable IBackupVaultRef backupVault) Monthly 7 year retention, move to cold storage after 3 months.- Parameters:
backupVault-
-
monthly7Year
Monthly 7 year retention, move to cold storage after 3 months. -
weekly
@Stability(Stable) @NotNull public static BackupPlanRule weekly(@Nullable IBackupVaultRef backupVault) Weekly with 3 months retention.- Parameters:
backupVault-
-
weekly
Weekly with 3 months retention. -
getProps
Properties of BackupPlanRule.
-