@Generated(value="jsii-pacmak/1.60.0 (build ebcefe6)",
date="2022-07-01T09:58:43.950Z")
public interface BackupSelectionOptions
Example:
BackupPlan plan; ITable myTable = Table.fromTableName(this, "Table", "myTableName"); Construct myCoolConstruct = new Construct(this, "MyCoolConstruct"); plan.addSelection("Selection", BackupSelectionOptions.builder() .resources(List.of(BackupResource.fromDynamoDbTable(myTable), BackupResource.fromTag("stage", "prod"), BackupResource.fromConstruct(myCoolConstruct))) .build());
Modifier and Type | Interface and Description |
---|---|
static class |
BackupSelectionOptions.Builder
A builder for
BackupSelectionOptions |
static class |
BackupSelectionOptions.Jsii$Proxy
An implementation for
BackupSelectionOptions |
Modifier and Type | Method and Description |
---|---|
static BackupSelectionOptions.Builder |
builder() |
default java.lang.Boolean |
getAllowRestores()
Whether to automatically give restores permissions to the role that AWS Backup uses.
|
default java.lang.String |
getBackupSelectionName()
The name for this selection.
|
java.util.List<BackupResource> |
getResources()
The resources to backup.
|
default IRole |
getRole()
The role that AWS Backup uses to authenticate when backuping or restoring the resources.
|
java.util.List<BackupResource> getResources()
Use the helper static methods defined on BackupResource
.
default java.lang.Boolean getAllowRestores()
If true
, the AWSBackupServiceRolePolicyForRestores
managed
policy will be attached to the role.
Default: false
default java.lang.String getBackupSelectionName()
Default: - a CDK generated name
default IRole getRole()
The AWSBackupServiceRolePolicyForBackup
managed policy
will be attached to this role.
Default: - a new role will be created
static BackupSelectionOptions.Builder builder()
BackupSelectionOptions.Builder
of BackupSelectionOptions