Interface IBackupSelectionOptions
Options for a BackupSelection.
Namespace: Amazon.CDK.AWS.Backup
Assembly: Amazon.CDK.AWS.Backup.dll
Syntax (csharp)
public interface IBackupSelectionOptions
Syntax (vb)
Public Interface IBackupSelectionOptions
Remarks
ExampleMetadata: infused
Examples
BackupPlan plan;
var myTable = Table.FromTableName(this, "Table", "myTableName");
var myCoolConstruct = new Construct(this, "MyCoolConstruct");
plan.AddSelection("Selection", new BackupSelectionOptions {
Resources = new [] { BackupResource.FromDynamoDbTable(myTable), BackupResource.FromTag("stage", "prod"), BackupResource.FromConstruct(myCoolConstruct) }
});
Synopsis
Properties
AllowRestores | Whether to automatically give restores permissions to the role that AWS Backup uses. |
BackupSelectionName | The name for this selection. |
Resources | The resources to backup. |
Role | The role that AWS Backup uses to authenticate when backuping or restoring the resources. |
Properties
AllowRestores
Whether to automatically give restores permissions to the role that AWS Backup uses.
virtual Nullable<bool> AllowRestores { get; }
Property Value
System.Nullable<System.Boolean>
Remarks
If true
, the AWSBackupServiceRolePolicyForRestores
managed
policy will be attached to the role.
Default: false
BackupSelectionName
The name for this selection.
virtual string BackupSelectionName { get; }
Property Value
System.String
Remarks
Default: - a CDK generated name
Resources
The resources to backup.
BackupResource[] Resources { get; }
Property Value
Remarks
Use the helper static methods defined on BackupResource
.
Role
The role that AWS Backup uses to authenticate when backuping or restoring the resources.
virtual IRole Role { get; }
Property Value
Remarks
The AWSBackupServiceRolePolicyForBackup
managed policy
will be attached to this role.
Default: - a new role will be created