public static final class BackupSelection.Builder
extends java.lang.Object
BackupSelection
.Modifier and Type | Method and Description |
---|---|
BackupSelection.Builder |
allowRestores(java.lang.Boolean allowRestores)
Whether to automatically give restores permissions to the role that AWS Backup uses.
|
BackupSelection.Builder |
backupPlan(IBackupPlan backupPlan)
The backup plan for this selection.
|
BackupSelection.Builder |
backupSelectionName(java.lang.String backupSelectionName)
The name for this selection.
|
BackupSelection |
build() |
static BackupSelection.Builder |
create(software.constructs.Construct scope,
java.lang.String id) |
BackupSelection.Builder |
resources(java.util.List<? extends BackupResource> resources)
The resources to backup.
|
BackupSelection.Builder |
role(IRole role)
The role that AWS Backup uses to authenticate when backuping or restoring the resources.
|
public static BackupSelection.Builder create(software.constructs.Construct scope, java.lang.String id)
scope
- This parameter is required.id
- This parameter is required.BackupSelection.Builder
.public BackupSelection.Builder resources(java.util.List<? extends BackupResource> resources)
Use the helper static methods defined on BackupResource
.
resources
- The resources to backup. This parameter is required.this
public BackupSelection.Builder allowRestores(java.lang.Boolean allowRestores)
If true
, the AWSBackupServiceRolePolicyForRestores
managed
policy will be attached to the role.
Default: false
allowRestores
- Whether to automatically give restores permissions to the role that AWS Backup uses. This parameter is required.this
public BackupSelection.Builder backupSelectionName(java.lang.String backupSelectionName)
Default: - a CDK generated name
backupSelectionName
- The name for this selection. This parameter is required.this
public BackupSelection.Builder role(IRole role)
The AWSBackupServiceRolePolicyForBackup
managed policy
will be attached to this role.
Default: - a new role will be created
role
- The role that AWS Backup uses to authenticate when backuping or restoring the resources. This parameter is required.this
public BackupSelection.Builder backupPlan(IBackupPlan backupPlan)
backupPlan
- The backup plan for this selection. This parameter is required.this
public BackupSelection build()