Class BackupSelectionProps
Properties for a BackupSelection.
Inheritance
Namespace: Amazon.CDK.AWS.Backup
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class BackupSelectionProps : Object, IBackupSelectionProps, IBackupSelectionOptions
Syntax (vb)
Public Class BackupSelectionProps
Inherits Object
Implements IBackupSelectionProps, IBackupSelectionOptions
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;
using Amazon.CDK.AWS.IAM;
BackupPlan backupPlan;
BackupResource backupResource;
Role role;
var backupSelectionProps = new BackupSelectionProps {
BackupPlan = backupPlan,
Resources = new [] { backupResource },
// the properties below are optional
AllowRestores = false,
BackupSelectionName = "backupSelectionName",
DisableDefaultBackupPolicy = false,
Role = role
};
Synopsis
Constructors
Backup |
Properties
Allow |
Whether to automatically give restores permissions to the role that AWS Backup uses. |
Backup |
The backup plan for this selection. |
Backup |
The name for this selection. |
Disable |
Whether to disable automatically assigning default backup permissions to the role that AWS Backup uses. |
Resources | The resources to backup. |
Role | The role that AWS Backup uses to authenticate when backuping or restoring the resources. |
Constructors
BackupSelectionProps()
public BackupSelectionProps()
Properties
AllowRestores
Whether to automatically give restores permissions to the role that AWS Backup uses.
public Nullable<bool> AllowRestores { get; set; }
Property Value
System.
Remarks
If true
, the AWSBackupServiceRolePolicyForRestores
managed
policy will be attached to the role.
Default: false
BackupPlan
The backup plan for this selection.
public IBackupPlan BackupPlan { get; set; }
Property Value
BackupSelectionName
The name for this selection.
public string BackupSelectionName { get; set; }
Property Value
System.
Remarks
Default: - a CDK generated name
DisableDefaultBackupPolicy
Whether to disable automatically assigning default backup permissions to the role that AWS Backup uses.
public Nullable<bool> DisableDefaultBackupPolicy { get; set; }
Property Value
System.
Remarks
If false
, the AWSBackupServiceRolePolicyForBackup
managed policy will be
attached to the role.
Default: false
Resources
The resources to backup.
public BackupResource[] Resources { get; set; }
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.
public IRole Role { get; set; }
Property Value
Remarks
The AWSBackupServiceRolePolicyForBackup
managed policy
will be attached to this role unless disableDefaultBackupPolicy
is set to true
.
Default: - a new role will be created