AWS Fundamentals Logo
AWS Fundamentals
L2 Construct

BackupSelection

A backup selection.

Import

import { BackupSelection } from 'aws-cdk-lib/aws-backup';

Or use the module namespace:

import * as backup from 'aws-cdk-lib/aws-backup';
// backup.BackupSelection

Properties

Configuration passed to the constructor as BackupSelectionProps.

backupPlanRequired
IBackupPlanRef

The backup plan for this selection.

5 properties inherited from BackupSelectionOptions
resourcesRequiredinherited from BackupSelectionOptions
BackupResource[]

The resources to backup. Use the helper static methods defined on `BackupResource`.

allowRestoresOptionalinherited from BackupSelectionOptions
boolean

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.

Default: false

backupSelectionNameOptionalinherited from BackupSelectionOptions
string

The name for this selection.

Default: - a CDK generated name

disableDefaultBackupPolicyOptionalinherited from BackupSelectionOptions
boolean

Whether 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 BackupSelectionOptions
IRole

The 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

Learn AWS the Practical Way

Our bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.

Subscribe to Newsletter