Interface BackupSelectionOptions
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Subinterfaces:
BackupSelectionProps
- All Known Implementing Classes:
BackupSelectionOptions.Jsii$Proxy
,BackupSelectionProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:49.602Z")
@Stability(Stable)
public interface BackupSelectionOptions
extends software.amazon.jsii.JsiiSerializable
Options for a BackupSelection.
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());
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forBackupSelectionOptions
static final class
An implementation forBackupSelectionOptions
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
default Boolean
Whether to automatically give restores permissions to the role that AWS Backup uses.default String
The name for this selection.The resources to backup.default IRole
getRole()
The role that AWS Backup uses to authenticate when backuping or restoring the resources.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getResources
The resources to backup.Use the helper static methods defined on
BackupResource
. -
getAllowRestores
Whether to automatically give restores permissions to the role that AWS Backup uses.If
true
, theAWSBackupServiceRolePolicyForRestores
managed policy will be attached to the role.Default: false
-
getBackupSelectionName
The name for this selection.Default: - a CDK generated name
-
getRole
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
-
builder
- Returns:
- a
BackupSelectionOptions.Builder
ofBackupSelectionOptions
-