BackupVault

class aws_cdk.aws_backup.BackupVault(scope, id, *, access_policy=None, backup_vault_name=None, encryption_key=None, notification_events=None, notification_topic=None, removal_policy=None)

Bases: aws_cdk.core.Resource

A backup vault.

stability :stability: experimental

__init__(scope, id, *, access_policy=None, backup_vault_name=None, encryption_key=None, notification_events=None, notification_topic=None, removal_policy=None)
Parameters
  • scope (Construct) –

  • id (str) –

  • access_policy (Optional[PolicyDocument]) – A resource-based policy that is used to manage access permissions on the backup vault. Default: - access is not restricted

  • backup_vault_name (Optional[str]) – 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

  • encryption_key (Optional[IKey]) – The server-side encryption key to use to protect your backups. Default: - an Amazon managed KMS key

  • notification_events (Optional[List[BackupVaultEvents]]) – The vault events to send. Default: - all vault events if notificationTopic is defined

  • notification_topic (Optional[ITopic]) – A SNS topic to send vault events to. Default: - no notifications

  • removal_policy (Optional[RemovalPolicy]) – The removal policy to apply to the vault. Note that removing a vault that contains recovery points will fail. Default: RemovalPolicy.RETAIN

stability :stability: experimental

Return type

None

Methods

to_string()

Returns a string representation of this construct.

Return type

str

Attributes

backup_vault_arn

The ARN of the backup vault.

stability :stability: experimental attribute: :attribute:: true

Return type

str

backup_vault_name

The name of a logical container where backups are stored.

stability :stability: experimental

Return type

str

node

The construct tree node associated with this construct.

Return type

ConstructNode

stack

The stack in which this resource is defined.

Return type

Stack

Static Methods

classmethod from_backup_vault_name(scope, id, backup_vault_name)

Import an existing backup vault.

Parameters
  • scope (Construct) –

  • id (str) –

  • backup_vault_name (str) –

stability :stability: experimental

Return type

IBackupVault

classmethod is_construct(x)

Return whether the given object is a Construct.

Parameters

x (Any) –

Return type

bool