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.119.0 (build 1634eac)",
date="2025-11-13T16:09:59.428Z")
@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(IBackupVault backupVault) Daily with 35 days retention.getProps()Properties of BackupPlanRule.static BackupPlanRuleMonthly 1 year retention, move to cold storage after 1 month.static BackupPlanRulemonthly1Year(IBackupVault 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(IBackupVault 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(IBackupVault backupVault) Monthly 7 year retention, move to cold storage after 3 months.static BackupPlanRuleweekly()Weekly with 3 months retention.static BackupPlanRuleweekly(IBackupVault 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
Daily with 35 days retention.- Parameters:
backupVault-
-
daily
Daily with 35 days retention. -
monthly1Year
@Stability(Stable) @NotNull public static BackupPlanRule monthly1Year(@Nullable IBackupVault 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 IBackupVault 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 IBackupVault 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
Weekly with 3 months retention.- Parameters:
backupVault-
-
weekly
Weekly with 3 months retention. -
getProps
Properties of BackupPlanRule.
-