Class CfnBackupPlan.BackupRuleResourceTypeProperty
Specifies an object containing properties used to schedule a task to back up a selection of resources.
Inheritance
Namespace: Amazon.CDK.AWS.Backup
Assembly: Amazon.CDK.AWS.Backup.dll
Syntax (csharp)
public class BackupRuleResourceTypeProperty : Object, CfnBackupPlan.IBackupRuleResourceTypeProperty
Syntax (vb)
Public Class BackupRuleResourceTypeProperty
Inherits Object
Implements CfnBackupPlan.IBackupRuleResourceTypeProperty
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Backup;
var backupRuleResourceTypeProperty = new BackupRuleResourceTypeProperty {
RuleName = "ruleName",
TargetBackupVault = "targetBackupVault",
// the properties below are optional
CompletionWindowMinutes = 123,
CopyActions = new [] { new CopyActionResourceTypeProperty {
DestinationBackupVaultArn = "destinationBackupVaultArn",
// the properties below are optional
Lifecycle = new LifecycleResourceTypeProperty {
DeleteAfterDays = 123,
MoveToColdStorageAfterDays = 123
}
} },
EnableContinuousBackup = false,
Lifecycle = new LifecycleResourceTypeProperty {
DeleteAfterDays = 123,
MoveToColdStorageAfterDays = 123
},
RecoveryPointTags = new Dictionary<string, string> {
{ "recoveryPointTagsKey", "recoveryPointTags" }
},
ScheduleExpression = "scheduleExpression",
StartWindowMinutes = 123
};
Synopsis
Constructors
BackupRuleResourceTypeProperty() |
Properties
CompletionWindowMinutes | A value in minutes after a backup job is successfully started before it must be completed or it is canceled by AWS Backup . |
CopyActions | An array of CopyAction objects, which contains the details of the copy operation. |
EnableContinuousBackup | Enables continuous backup and point-in-time restores (PITR). |
Lifecycle | The lifecycle defines when a protected resource is transitioned to cold storage and when it expires. |
RecoveryPointTags | To help organize your resources, you can assign your own metadata to the resources that you create. |
RuleName | A display name for a backup rule. |
ScheduleExpression | A CRON expression specifying when AWS Backup initiates a backup job. |
StartWindowMinutes | An optional value that specifies a period of time in minutes after a backup is scheduled before a job is canceled if it doesn't start successfully. |
TargetBackupVault | The name of a logical container where backups are stored. |
Constructors
BackupRuleResourceTypeProperty()
public BackupRuleResourceTypeProperty()
Properties
CompletionWindowMinutes
A value in minutes after a backup job is successfully started before it must be completed or it is canceled by AWS Backup .
public Nullable<double> CompletionWindowMinutes { get; set; }
Property Value
System.Nullable<System.Double>
Remarks
CopyActions
An array of CopyAction objects, which contains the details of the copy operation.
public object CopyActions { get; set; }
Property Value
System.Object
Remarks
EnableContinuousBackup
Enables continuous backup and point-in-time restores (PITR).
public object EnableContinuousBackup { get; set; }
Property Value
System.Object
Remarks
Lifecycle
The lifecycle defines when a protected resource is transitioned to cold storage and when it expires.
public object Lifecycle { get; set; }
Property Value
System.Object
Remarks
AWS Backup transitions and expires backups automatically according to the lifecycle that you define.
RecoveryPointTags
To help organize your resources, you can assign your own metadata to the resources that you create.
public object RecoveryPointTags { get; set; }
Property Value
System.Object
Remarks
RuleName
A display name for a backup rule.
public string RuleName { get; set; }
Property Value
System.String
Remarks
ScheduleExpression
A CRON expression specifying when AWS Backup initiates a backup job.
public string ScheduleExpression { get; set; }
Property Value
System.String
Remarks
StartWindowMinutes
An optional value that specifies a period of time in minutes after a backup is scheduled before a job is canceled if it doesn't start successfully.
public Nullable<double> StartWindowMinutes { get; set; }
Property Value
System.Nullable<System.Double>
Remarks
If this value is included, it must be at least 60 minutes to avoid errors.
TargetBackupVault
The name of a logical container where backups are stored.
public string TargetBackupVault { get; set; }
Property Value
System.String
Remarks
Backup vaults are identified by names that are unique to the account used to create them and the AWS Region where they are created. They consist of letters, numbers, and hyphens.