Class BackupSelection
A backup selection.
Inherited Members
Namespace: Amazon.CDK.AWS.Backup
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class BackupSelection : Resource, IResource, IConstruct, IDependable, IEnvironmentAware, IGrantable
Syntax (vb)
Public Class BackupSelection Inherits Resource Implements IResource, IConstruct, IDependable, IEnvironmentAware, IGrantable
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;
using Amazon.CDK.Interfaces.Backup;
IBackupPlanRef backupPlanRef;
BackupResource backupResource;
Role role;
var backupSelection = new BackupSelection(this, "MyBackupSelection", new BackupSelectionProps {
BackupPlan = backupPlanRef,
Resources = new [] { backupResource },
// the properties below are optional
AllowRestores = false,
BackupSelectionName = "backupSelectionName",
DisableDefaultBackupPolicy = false,
Role = role
});
Synopsis
Constructors
| BackupSelection(Construct, string, IBackupSelectionProps) | A backup selection. |
Properties
| BackupPlanId | The identifier of the backup plan. |
| GrantPrincipal | The principal to grant permissions to. |
| PROPERTY_INJECTION_ID | Uniquely identifies this class. |
| SelectionId | The identifier of the backup selection. |
Constructors
BackupSelection(Construct, string, IBackupSelectionProps)
A backup selection.
public BackupSelection(Construct scope, string id, IBackupSelectionProps props)
Parameters
- scope Construct
- id string
- props IBackupSelectionProps
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;
using Amazon.CDK.Interfaces.Backup;
IBackupPlanRef backupPlanRef;
BackupResource backupResource;
Role role;
var backupSelection = new BackupSelection(this, "MyBackupSelection", new BackupSelectionProps {
BackupPlan = backupPlanRef,
Resources = new [] { backupResource },
// the properties below are optional
AllowRestores = false,
BackupSelectionName = "backupSelectionName",
DisableDefaultBackupPolicy = false,
Role = role
});
Properties
BackupPlanId
The identifier of the backup plan.
public virtual string BackupPlanId { get; }
Property Value
Remarks
Attribute: true
GrantPrincipal
The principal to grant permissions to.
public virtual IPrincipal GrantPrincipal { get; }
Property Value
Remarks
ExampleMetadata: fixture=_generated
PROPERTY_INJECTION_ID
Uniquely identifies this class.
public static string PROPERTY_INJECTION_ID { get; }
Property Value
Remarks
ExampleMetadata: fixture=_generated
SelectionId
The identifier of the backup selection.
public virtual string SelectionId { get; }
Property Value
Remarks
Attribute: true
Implements
Constructs.IConstruct
Constructs.IDependable