Resource: awsBackupVault
Provides an AWS Backup vault resource.
Example Usage
/*Provider bindings are generated by running cdktf get.
See https://cdk.tf/provider-generation for more details.*/
import * as aws from "./.gen/providers/aws";
new aws.backupVault.BackupVault(this, "example", {
kmsKeyArn: "${aws_kms_key.example.arn}",
name: "example_backup_vault",
});
Argument Reference
The following arguments are supported:
forceDestroy
- (Optional, Default:false
) A boolean that indicates that all recovery points stored in the vault are deleted so that the vault can be destroyed without error.kmsKeyArn
- (Optional) The server-side encryption key that is used to protect your backups.name
- (Required) Name of the backup vault to create.tags
- (Optional) Metadata that you can assign to help organize the resources that you create. If configured with a providerdefaultTags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.
Attributes Reference
In addition to all arguments above, the following attributes are exported:
id
- The name of the vault.arn
- The ARN of the vault.recoveryPoints
- The number of recovery points that are stored in a backup vault.tagsAll
- A map of tags assigned to the resource, including those inherited from the providerdefaultTags
configuration block.
Timeouts
delete
- (Default10M
)
Import
Backup vault can be imported using the name
, e.g.,