@Generated(value="jsii-pacmak/1.50.0 (build d1830a4)", date="2022-01-04T15:39:03.472Z") @Stability(value=Experimental) public interface BackupSelectionOptions extends software.amazon.jsii.JsiiSerializable
Example:
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 Boolean |
getAllowRestores()
(experimental) Whether to automatically give restores permissions to the role that AWS Backup uses.
|
default String |
getBackupSelectionName()
(experimental) The name for this selection.
|
List<BackupResource> |
getResources()
(experimental) The resources to backup.
|
default IRole |
getRole()
(experimental) The role that AWS Backup uses to authenticate when backuping or restoring the resources.
|
@Stability(value=Experimental) @NotNull List<BackupResource> getResources()
Use the helper static methods defined on BackupResource.
@Stability(value=Experimental) @Nullable default Boolean getAllowRestores()
If true, the AWSBackupServiceRolePolicyForRestores managed
policy will be attached to the role.
Default: false
@Stability(value=Experimental) @Nullable default String getBackupSelectionName()
Default: - a CDK generated name
@Stability(value=Experimental) @Nullable default IRole getRole()
The AWSBackupServiceRolePolicyForBackup managed policy
will be attached to this role.
Default: - a new role will be created
@Stability(value=Experimental) static BackupSelectionOptions.Builder builder()
BackupSelectionOptions.Builder of BackupSelectionOptionsCopyright © 2022. All rights reserved.