Show / Hide Table of Contents

Class BackupPlanRule

A backup plan rule.

Inheritance
object
BackupPlanRule
Namespace: Amazon.CDK.AWS.Backup
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class BackupPlanRule : DeputyBase
Syntax (vb)
Public Class BackupPlanRule Inherits DeputyBase
Remarks

ExampleMetadata: infused

Examples
BackupPlan plan;

            plan.AddRule(new BackupPlanRule(new BackupPlanRuleProps {
                EnableContinuousBackup = true,
                DeleteAfter = Duration.Days(14)
            }));

Synopsis

Constructors

BackupPlanRule(IBackupPlanRuleProps)

A backup plan rule.

Properties

Props

Properties of BackupPlanRule.

Methods

Daily(IBackupVaultRef?)

Daily with 35 days retention.

Monthly1Year(IBackupVaultRef?)

Monthly 1 year retention, move to cold storage after 1 month.

Monthly5Year(IBackupVaultRef?)

Monthly 5 year retention, move to cold storage after 3 months.

Monthly7Year(IBackupVaultRef?)

Monthly 7 year retention, move to cold storage after 3 months.

Weekly(IBackupVaultRef?)

Weekly with 3 months retention.

Constructors

BackupPlanRule(IBackupPlanRuleProps)

A backup plan rule.

public BackupPlanRule(IBackupPlanRuleProps props)
Parameters
props IBackupPlanRuleProps

Rule properties.

Remarks

ExampleMetadata: infused

Properties

Props

Properties of BackupPlanRule.

public virtual IBackupPlanRuleProps Props { get; }
Property Value

IBackupPlanRuleProps

Remarks

ExampleMetadata: infused

Methods

Daily(IBackupVaultRef?)

Daily with 35 days retention.

public static BackupPlanRule Daily(IBackupVaultRef? backupVault = null)
Parameters
backupVault IBackupVaultRef
Returns

BackupPlanRule

Remarks

ExampleMetadata: infused

Monthly1Year(IBackupVaultRef?)

Monthly 1 year retention, move to cold storage after 1 month.

public static BackupPlanRule Monthly1Year(IBackupVaultRef? backupVault = null)
Parameters
backupVault IBackupVaultRef
Returns

BackupPlanRule

Remarks

ExampleMetadata: infused

Monthly5Year(IBackupVaultRef?)

Monthly 5 year retention, move to cold storage after 3 months.

public static BackupPlanRule Monthly5Year(IBackupVaultRef? backupVault = null)
Parameters
backupVault IBackupVaultRef
Returns

BackupPlanRule

Remarks

ExampleMetadata: infused

Monthly7Year(IBackupVaultRef?)

Monthly 7 year retention, move to cold storage after 3 months.

public static BackupPlanRule Monthly7Year(IBackupVaultRef? backupVault = null)
Parameters
backupVault IBackupVaultRef
Returns

BackupPlanRule

Remarks

ExampleMetadata: infused

Weekly(IBackupVaultRef?)

Weekly with 3 months retention.

public static BackupPlanRule Weekly(IBackupVaultRef? backupVault = null)
Parameters
backupVault IBackupVaultRef
Returns

BackupPlanRule

Remarks

ExampleMetadata: infused

Back to top Generated by DocFX