Skip to content

Resource: awsBackupVaultLockConfiguration

Provides an AWS Backup vault lock configuration 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.backupVaultLockConfiguration.BackupVaultLockConfiguration(
  this,
  "test",
  {
    backupVaultName: "example_backup_vault",
    changeableForDays: 3,
    maxRetentionDays: 1200,
    minRetentionDays: 7,
  }
);

Argument Reference

The following arguments are supported:

  • backupVaultName - (Required) Name of the backup vault to add a lock configuration for.
  • changeableForDays - (Optional) The number of days before the lock date. If omitted creates a vault lock in governance mode, otherwise it will create a vault lock in compliance mode.
  • maxRetentionDays - (Optional) The maximum retention period that the vault retains its recovery points.
  • minRetentionDays - (Optional) The minimum retention period that the vault retains its recovery points.

Attributes Reference

In addition to all arguments above, the following attributes are exported:

  • backupVaultName - The name of the vault.
  • backupVaultArn - The ARN of the vault.

Import

Backup vault lock configuration can be imported using the name, e.g.,

$ terraform import aws_backup_vault_lock_configuration.test TestVault