BackupSelectionProps

class aws_cdk.aws_backup.BackupSelectionProps(*, resources, allow_restores=None, backup_selection_name=None, role=None, backup_plan)

Bases: aws_cdk.aws_backup.BackupSelectionOptions

(experimental) Properties for a BackupSelection.

Parameters
  • resources (List[BackupResource]) – (experimental) The resources to backup. Use the helper static methods defined on BackupResource.

  • allow_restores (Optional[bool]) – (experimental) 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

  • backup_selection_name (Optional[str]) – (experimental) The name for this selection. Default: - a CDK generated name

  • role (Optional[IRole]) – (experimental) The role that AWS Backup uses to authenticate when backuping or restoring the resources. The AWSBackupServiceRolePolicyForBackup managed policy will be attached to this role. Default: - a new role will be created

  • backup_plan (IBackupPlan) – (experimental) The backup plan for this selection.

Stability

experimental

Attributes

allow_restores

(experimental) 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

Stability

experimental

Return type

Optional[bool]

backup_plan

(experimental) The backup plan for this selection.

Stability

experimental

Return type

IBackupPlan

backup_selection_name

(experimental) The name for this selection.

Default
  • a CDK generated name

Stability

experimental

Return type

Optional[str]

resources

(experimental) The resources to backup.

Use the helper static methods defined on BackupResource.

Stability

experimental

Return type

List[BackupResource]

role

(experimental) The role that AWS Backup uses to authenticate when backuping or restoring the resources.

The AWSBackupServiceRolePolicyForBackup managed policy will be attached to this role.

Default
  • a new role will be created

Stability

experimental

Return type

Optional[IRole]