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.84.0 (build 5404dcf)", date="2023-06-19T16:30:49.596Z") @Stability(Stable) public class BackupPlanRule extends software.amazon.jsii.JsiiObject
A backup plan rule.

Example:

 BackupPlan plan;
 plan.addRule(BackupPlanRule.daily());
 plan.addRule(BackupPlanRule.weekly());
 
  • Constructor Details

    • BackupPlanRule

      protected BackupPlanRule(software.amazon.jsii.JsiiObjectRef objRef)
    • BackupPlanRule

      protected BackupPlanRule(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • BackupPlanRule

      @Stability(Stable) public BackupPlanRule(@NotNull BackupPlanRuleProps props)
      Parameters:
      props - Rule properties. This parameter is required.
  • Method Details

    • daily

      @Stability(Stable) @NotNull public static BackupPlanRule daily(@Nullable IBackupVault backupVault)
      Daily with 35 days retention.

      Parameters:
      backupVault -
    • daily

      @Stability(Stable) @NotNull public static BackupPlanRule 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

      @Stability(Stable) @NotNull public static BackupPlanRule 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

      @Stability(Stable) @NotNull public static BackupPlanRule 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

      @Stability(Stable) @NotNull public static BackupPlanRule monthly7Year()
      Monthly 7 year retention, move to cold storage after 3 months.
    • weekly

      @Stability(Stable) @NotNull public static BackupPlanRule weekly(@Nullable IBackupVault backupVault)
      Weekly with 3 months retention.

      Parameters:
      backupVault -
    • weekly

      @Stability(Stable) @NotNull public static BackupPlanRule weekly()
      Weekly with 3 months retention.
    • getProps

      @Stability(Stable) @NotNull public BackupPlanRuleProps getProps()
      Properties of BackupPlanRule.