Class BackupVaultProps
Properties for a BackupVault.
Implements
Inherited Members
Namespace: Amazon.CDK.AWS.Backup
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class BackupVaultProps : IBackupVaultProps
Syntax (vb)
Public Class BackupVaultProps Implements IBackupVaultProps
Remarks
ExampleMetadata: infused
Examples
var myKey = Key.FromKeyArn(this, "MyKey", "aaa");
var myTopic = Topic.FromTopicArn(this, "MyTopic", "bbb");
var vault = new BackupVault(this, "Vault", new BackupVaultProps {
EncryptionKey = myKey, // Custom encryption key
NotificationTopic = myTopic
});
Synopsis
Constructors
| BackupVaultProps() | Properties for a BackupVault. |
Properties
| AccessPolicy | A resource-based policy that is used to manage access permissions on the backup vault. |
| BackupVaultName | The name of a logical container where backups are stored. |
| BlockRecoveryPointDeletion | Whether to add statements to the vault access policy that prevents anyone from deleting a recovery point. |
| EncryptionKey | The server-side encryption key to use to protect your backups. |
| LockConfiguration | Configuration for AWS Backup Vault Lock. |
| NotificationEvents | The vault events to send. |
| NotificationTopic | A SNS topic to send vault events to. |
| RemovalPolicy | The removal policy to apply to the vault. |
Constructors
BackupVaultProps()
Properties for a BackupVault.
public BackupVaultProps()
Remarks
ExampleMetadata: infused
Examples
var myKey = Key.FromKeyArn(this, "MyKey", "aaa");
var myTopic = Topic.FromTopicArn(this, "MyTopic", "bbb");
var vault = new BackupVault(this, "Vault", new BackupVaultProps {
EncryptionKey = myKey, // Custom encryption key
NotificationTopic = myTopic
});
Properties
AccessPolicy
A resource-based policy that is used to manage access permissions on the backup vault.
public PolicyDocument? AccessPolicy { get; set; }
Property Value
Remarks
Default: - access is not restricted
BackupVaultName
The name of a logical container where backups are stored.
public string? BackupVaultName { get; set; }
Property Value
Remarks
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
BlockRecoveryPointDeletion
Whether to add statements to the vault access policy that prevents anyone from deleting a recovery point.
public bool? BlockRecoveryPointDeletion { get; set; }
Property Value
bool?
Remarks
Default: false
EncryptionKey
The server-side encryption key to use to protect your backups.
public IKeyRef? EncryptionKey { get; set; }
Property Value
Remarks
Default: - an Amazon managed KMS key
LockConfiguration
Configuration for AWS Backup Vault Lock.
public ILockConfiguration? LockConfiguration { get; set; }
Property Value
Remarks
Default: - AWS Backup Vault Lock is disabled
See: https://docs.aws.amazon.com/aws-backup/latest/devguide/vault-lock.html
NotificationEvents
The vault events to send.
public BackupVaultEvents[]? NotificationEvents { get; set; }
Property Value
Remarks
Default: - all vault events if notificationTopic is defined
See: https://docs.aws.amazon.com/aws-backup/latest/devguide/sns-notifications.html
NotificationTopic
A SNS topic to send vault events to.
public ITopic? NotificationTopic { get; set; }
Property Value
Remarks
Default: - no notifications
See: https://docs.aws.amazon.com/aws-backup/latest/devguide/sns-notifications.html
RemovalPolicy
The removal policy to apply to the vault.
public RemovalPolicy? RemovalPolicy { get; set; }
Property Value
Remarks
Note that removing a vault that contains recovery points will fail.
Default: RemovalPolicy.RETAIN