A backup selection.
import { BackupSelection } from 'aws-cdk-lib/aws-backup';Or use the module namespace:
import * as backup from 'aws-cdk-lib/aws-backup';
// backup.BackupSelectionConfiguration passed to the constructor as BackupSelectionProps.
backupPlanRequiredIBackupPlanRefThe backup plan for this selection.
BackupSelectionOptionsresourcesRequiredinherited from BackupSelectionOptionsBackupResource[]The resources to backup. Use the helper static methods defined on `BackupResource`.
allowRestoresOptionalinherited from BackupSelectionOptionsbooleanWhether to automatically give restores permissions to the role that AWS Backup uses. If `true`, the `AWSBackupServiceRolePolicyForRestores` managed policy will be attached to the role.
Default: false
backupSelectionNameOptionalinherited from BackupSelectionOptionsstringThe name for this selection.
Default: - a CDK generated name
disableDefaultBackupPolicyOptionalinherited from BackupSelectionOptionsbooleanWhether to disable automatically assigning default backup permissions to the role that AWS Backup uses. If `false`, the `AWSBackupServiceRolePolicyForBackup` managed policy will be attached to the role.
Default: false
roleOptionalinherited from BackupSelectionOptionsIRoleThe role that AWS Backup uses to authenticate when backuping or restoring the resources. The `AWSBackupServiceRolePolicyForBackup` managed policy will be attached to this role unless `disableDefaultBackupPolicy` is set to `true`.
Default: - a new role will be created
Our bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.
Subscribe to Newsletteraws-backup