@Stability(value=Stable) public static final class BackupSelection.Builder extends Object implements software.amazon.jsii.Builder<BackupSelection>
BackupSelection.| Modifier and Type | Method and Description |
|---|---|
BackupSelection.Builder |
allowRestores(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(String backupSelectionName)
The name for this selection.
|
BackupSelection |
build() |
static BackupSelection.Builder |
create(software.constructs.Construct scope,
String id) |
BackupSelection.Builder |
resources(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.
|
@Stability(value=Stable) public static BackupSelection.Builder create(software.constructs.Construct scope, String id)
scope - This parameter is required.id - This parameter is required.BackupSelection.Builder.@Stability(value=Stable) public BackupSelection.Builder resources(List<? extends BackupResource> resources)
Use the helper static methods defined on BackupResource.
resources - The resources to backup. This parameter is required.this@Stability(value=Stable) public BackupSelection.Builder allowRestores(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@Stability(value=Stable) public BackupSelection.Builder backupSelectionName(String backupSelectionName)
Default: - a CDK generated name
backupSelectionName - The name for this selection. This parameter is required.this@Stability(value=Stable) 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@Stability(value=Stable) public BackupSelection.Builder backupPlan(IBackupPlan backupPlan)
backupPlan - The backup plan for this selection. This parameter is required.this@Stability(value=Stable) public BackupSelection build()
build in interface software.amazon.jsii.Builder<BackupSelection>Copyright © 2022. All rights reserved.