Class BackupPlanRule
A backup plan rule.
Inheritance
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) | |
BackupPlanRule(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
BackupPlanRule(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
Properties
Props | Properties of BackupPlanRule. |
Methods
Daily(IBackupVault) | Daily with 35 days retention. |
Monthly1Year(IBackupVault) | Monthly 1 year retention, move to cold storage after 1 month. |
Monthly5Year(IBackupVault) | Monthly 5 year retention, move to cold storage after 3 months. |
Monthly7Year(IBackupVault) | Monthly 7 year retention, move to cold storage after 3 months. |
Weekly(IBackupVault) | Weekly with 3 months retention. |
Constructors
BackupPlanRule(IBackupPlanRuleProps)
public BackupPlanRule(IBackupPlanRuleProps props)
Parameters
- props IBackupPlanRuleProps
Rule properties.
BackupPlanRule(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected BackupPlanRule(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
BackupPlanRule(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected BackupPlanRule(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
Properties
Props
Properties of BackupPlanRule.
public virtual IBackupPlanRuleProps Props { get; }
Property Value
Methods
Daily(IBackupVault)
Daily with 35 days retention.
public static BackupPlanRule Daily(IBackupVault backupVault = null)
Parameters
- backupVault IBackupVault
Returns
Monthly1Year(IBackupVault)
Monthly 1 year retention, move to cold storage after 1 month.
public static BackupPlanRule Monthly1Year(IBackupVault backupVault = null)
Parameters
- backupVault IBackupVault
Returns
Monthly5Year(IBackupVault)
Monthly 5 year retention, move to cold storage after 3 months.
public static BackupPlanRule Monthly5Year(IBackupVault backupVault = null)
Parameters
- backupVault IBackupVault
Returns
Monthly7Year(IBackupVault)
Monthly 7 year retention, move to cold storage after 3 months.
public static BackupPlanRule Monthly7Year(IBackupVault backupVault = null)
Parameters
- backupVault IBackupVault
Returns
Weekly(IBackupVault)
Weekly with 3 months retention.
public static BackupPlanRule Weekly(IBackupVault backupVault = null)
Parameters
- backupVault IBackupVault
Returns