@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:36.847Z") @Stability(value=Stable) public class BackupPlan extends Resource implements IBackupPlan
Example:
// Daily, weekly and monthly with 5 year retention BackupPlan plan = BackupPlan.dailyWeeklyMonthly5YearRetention(this, "Plan");
| Modifier and Type | Class and Description |
|---|---|
static class |
BackupPlan.Builder
A fluent builder for
BackupPlan. |
software.amazon.jsii.JsiiObject.InitializationModeIBackupPlan.Jsii$Default, IBackupPlan.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
|
BackupPlan(software.constructs.Construct scope,
String id) |
|
BackupPlan(software.constructs.Construct scope,
String id,
BackupPlanProps props) |
protected |
BackupPlan(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
BackupPlan(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
void |
addRule(BackupPlanRule rule)
Adds a rule to a plan.
|
BackupSelection |
addSelection(String id,
BackupSelectionOptions options)
Adds a selection to this plan.
|
static BackupPlan |
daily35DayRetention(software.constructs.Construct scope,
String id)
Daily with 35 day retention.
|
static BackupPlan |
daily35DayRetention(software.constructs.Construct scope,
String id,
IBackupVault backupVault)
Daily with 35 day retention.
|
static BackupPlan |
dailyMonthly1YearRetention(software.constructs.Construct scope,
String id)
Daily and monthly with 1 year retention.
|
static BackupPlan |
dailyMonthly1YearRetention(software.constructs.Construct scope,
String id,
IBackupVault backupVault)
Daily and monthly with 1 year retention.
|
static BackupPlan |
dailyWeeklyMonthly5YearRetention(software.constructs.Construct scope,
String id)
Daily, weekly and monthly with 5 year retention.
|
static BackupPlan |
dailyWeeklyMonthly5YearRetention(software.constructs.Construct scope,
String id,
IBackupVault backupVault)
Daily, weekly and monthly with 5 year retention.
|
static BackupPlan |
dailyWeeklyMonthly7YearRetention(software.constructs.Construct scope,
String id)
Daily, weekly and monthly with 7 year retention.
|
static BackupPlan |
dailyWeeklyMonthly7YearRetention(software.constructs.Construct scope,
String id,
IBackupVault backupVault)
Daily, weekly and monthly with 7 year retention.
|
static IBackupPlan |
fromBackupPlanId(software.constructs.Construct scope,
String id,
String backupPlanId)
Import an existing backup plan.
|
String |
getBackupPlanArn()
The ARN of the backup plan.
|
String |
getBackupPlanId()
The identifier of the backup plan.
|
IBackupVault |
getBackupVault()
The backup vault where backups are stored if not defined at the rule level.
|
String |
getVersionId()
Version Id.
|
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isOwnedResource, isResourcejsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitapplyRemovalPolicy, getEnv, getStackprotected BackupPlan(software.amazon.jsii.JsiiObjectRef objRef)
protected BackupPlan(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public BackupPlan(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@Nullable
BackupPlanProps props)
scope - This parameter is required.id - This parameter is required.props - @Stability(value=Stable)
public BackupPlan(@NotNull
software.constructs.Construct scope,
@NotNull
String id)
scope - This parameter is required.id - This parameter is required.@Stability(value=Stable) @NotNull public static BackupPlan daily35DayRetention(@NotNull software.constructs.Construct scope, @NotNull String id, @Nullable IBackupVault backupVault)
scope - This parameter is required.id - This parameter is required.backupVault - @Stability(value=Stable) @NotNull public static BackupPlan daily35DayRetention(@NotNull software.constructs.Construct scope, @NotNull String id)
scope - This parameter is required.id - This parameter is required.@Stability(value=Stable) @NotNull public static BackupPlan dailyMonthly1YearRetention(@NotNull software.constructs.Construct scope, @NotNull String id, @Nullable IBackupVault backupVault)
scope - This parameter is required.id - This parameter is required.backupVault - @Stability(value=Stable) @NotNull public static BackupPlan dailyMonthly1YearRetention(@NotNull software.constructs.Construct scope, @NotNull String id)
scope - This parameter is required.id - This parameter is required.@Stability(value=Stable) @NotNull public static BackupPlan dailyWeeklyMonthly5YearRetention(@NotNull software.constructs.Construct scope, @NotNull String id, @Nullable IBackupVault backupVault)
scope - This parameter is required.id - This parameter is required.backupVault - @Stability(value=Stable) @NotNull public static BackupPlan dailyWeeklyMonthly5YearRetention(@NotNull software.constructs.Construct scope, @NotNull String id)
scope - This parameter is required.id - This parameter is required.@Stability(value=Stable) @NotNull public static BackupPlan dailyWeeklyMonthly7YearRetention(@NotNull software.constructs.Construct scope, @NotNull String id, @Nullable IBackupVault backupVault)
scope - This parameter is required.id - This parameter is required.backupVault - @Stability(value=Stable) @NotNull public static BackupPlan dailyWeeklyMonthly7YearRetention(@NotNull software.constructs.Construct scope, @NotNull String id)
scope - This parameter is required.id - This parameter is required.@Stability(value=Stable) @NotNull public static IBackupPlan fromBackupPlanId(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String backupPlanId)
scope - This parameter is required.id - This parameter is required.backupPlanId - This parameter is required.@Stability(value=Stable)
public void addRule(@NotNull
BackupPlanRule rule)
rule - the rule to add. This parameter is required.@Stability(value=Stable) @NotNull public BackupSelection addSelection(@NotNull String id, @NotNull BackupSelectionOptions options)
id - This parameter is required.options - This parameter is required.@Stability(value=Stable) @NotNull public String getBackupPlanArn()
@Stability(value=Stable) @NotNull public String getBackupPlanId()
getBackupPlanId in interface IBackupPlan@Stability(value=Stable) @NotNull public IBackupVault getBackupVault()
@Stability(value=Stable) @NotNull public String getVersionId()
Copyright © 2022. All rights reserved.