interface BackupSelectionProps
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.Backup.BackupSelectionProps |
Java | software.amazon.awscdk.services.backup.BackupSelectionProps |
Python | aws_cdk.aws_backup.BackupSelectionProps |
TypeScript (source) | @aws-cdk/aws-backup » BackupSelectionProps |
Properties for a BackupSelection.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as backup from '@aws-cdk/aws-backup';
import * as iam from '@aws-cdk/aws-iam';
declare const backupPlan: backup.BackupPlan;
declare const backupResource: backup.BackupResource;
declare const role: iam.Role;
const backupSelectionProps: backup.BackupSelectionProps = {
backupPlan: backupPlan,
resources: [backupResource],
// the properties below are optional
allowRestores: false,
backupSelectionName: 'backupSelectionName',
role: role,
};
Properties
| Name | Type | Description |
|---|---|---|
| backup | IBackup | The backup plan for this selection. |
| resources | Backup[] | The resources to backup. |
| allow | boolean | Whether to automatically give restores permissions to the role that AWS Backup uses. |
| backup | string | The name for this selection. |
| role? | IRole | The role that AWS Backup uses to authenticate when backuping or restoring the resources. |
backupPlan
Type:
IBackup
The backup plan for this selection.
resources
Type:
Backup[]
The resources to backup.
Use the helper static methods defined on BackupResource.
allowRestores?
Type:
boolean
(optional, default: false)
Whether to automatically give restores permissions to the role that AWS Backup uses.
If true, the AWSBackupServiceRolePolicyForRestores managed
policy will be attached to the role.
backupSelectionName?
Type:
string
(optional, default: a CDK generated name)
The name for this selection.
role?
Type:
IRole
(optional, default: a new role will be created)
The role that AWS Backup uses to authenticate when backuping or restoring the resources.
The AWSBackupServiceRolePolicyForBackup managed policy
will be attached to this role.

.NET
Java
Python
TypeScript (