Class BackupVault.Builder
java.lang.Object
software.amazon.awscdk.services.backup.BackupVault.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<BackupVault>
- Enclosing class:
BackupVault
@Stability(Stable)
public static final class BackupVault.Builder
extends Object
implements software.amazon.jsii.Builder<BackupVault>
A fluent builder for
BackupVault
.-
Method Summary
Modifier and TypeMethodDescriptionaccessPolicy
(PolicyDocument accessPolicy) A resource-based policy that is used to manage access permissions on the backup vault.backupVaultName
(String backupVaultName) The name of a logical container where backups are stored.blockRecoveryPointDeletion
(Boolean blockRecoveryPointDeletion) Whether to add statements to the vault access policy that prevents anyone from deleting a recovery point.build()
static BackupVault.Builder
encryptionKey
(IKey encryptionKey) The server-side encryption key to use to protect your backups.lockConfiguration
(LockConfiguration lockConfiguration) Configuration for AWS Backup Vault Lock.notificationEvents
(List<? extends BackupVaultEvents> notificationEvents) The vault events to send.notificationTopic
(ITopic notificationTopic) A SNS topic to send vault events to.removalPolicy
(RemovalPolicy removalPolicy) The removal policy to apply to the vault.
-
Method Details
-
create
@Stability(Stable) public static BackupVault.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope
- This parameter is required.id
- This parameter is required.- Returns:
- a new instance of
BackupVault.Builder
.
-
accessPolicy
A resource-based policy that is used to manage access permissions on the backup vault.Default: - access is not restricted
- Parameters:
accessPolicy
- A resource-based policy that is used to manage access permissions on the backup vault. This parameter is required.- Returns:
this
-
backupVaultName
The name of a logical container where backups are stored.Backup vaults are identified by names that are unique to the account used to create them and the AWS Region where they are created.
Default: - A CDK generated name
- Parameters:
backupVaultName
- The name of a logical container where backups are stored. This parameter is required.- Returns:
this
-
blockRecoveryPointDeletion
@Stability(Stable) public BackupVault.Builder blockRecoveryPointDeletion(Boolean blockRecoveryPointDeletion) Whether to add statements to the vault access policy that prevents anyone from deleting a recovery point.Default: false
- Parameters:
blockRecoveryPointDeletion
- Whether to add statements to the vault access policy that prevents anyone from deleting a recovery point. This parameter is required.- Returns:
this
-
encryptionKey
The server-side encryption key to use to protect your backups.Default: - an Amazon managed KMS key
- Parameters:
encryptionKey
- The server-side encryption key to use to protect your backups. This parameter is required.- Returns:
this
-
lockConfiguration
@Stability(Stable) public BackupVault.Builder lockConfiguration(LockConfiguration lockConfiguration) Configuration for AWS Backup Vault Lock.Default: - AWS Backup Vault Lock is disabled
- Parameters:
lockConfiguration
- Configuration for AWS Backup Vault Lock. This parameter is required.- Returns:
this
- See Also:
-
notificationEvents
@Stability(Stable) public BackupVault.Builder notificationEvents(List<? extends BackupVaultEvents> notificationEvents) The vault events to send.Default: - all vault events if `notificationTopic` is defined
- Parameters:
notificationEvents
- The vault events to send. This parameter is required.- Returns:
this
- See Also:
-
notificationTopic
A SNS topic to send vault events to.Default: - no notifications
- Parameters:
notificationTopic
- A SNS topic to send vault events to. This parameter is required.- Returns:
this
- See Also:
-
removalPolicy
The removal policy to apply to the vault.Note that removing a vault that contains recovery points will fail.
Default: RemovalPolicy.RETAIN
- Parameters:
removalPolicy
- The removal policy to apply to the vault. This parameter is required.- Returns:
this
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<BackupVault>
- Returns:
- a newly built instance of
BackupVault
.
-