import * as core from "@terrascript/core"; export interface VaultArgs extends core.ResourceArgs { /** * (Optional, Default: `false`) A boolean that indicates that all recovery points stored in the vault a * re deleted so that the vault can be destroyed without error. */ forceDestroy?: boolean | core.BooleanOut; /** * (Optional) The server-side encryption key that is used to protect your backups. */ kmsKeyArn?: string | core.StringOut; /** * (Required) Name of the backup vault to create. */ name: string | core.StringOut; /** * (Optional) Metadata that you can assign to help organize the resources that you create. If configure * d with a provider [`default_tags` configuration block](https://registry.terraform.io/providers/hashi * corp/aws/latest/docs#default_tags-configuration-block) present, tags with matching keys will overwri * te those defined at the provider-level. */ tags?: core.Map | core.MapOut; /** * A map of tags assigned to the resource, including those inherited from the provider [`default_tags` * configuration block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#default_tags- * configuration-block). */ tagsAll?: core.Map | core.MapOut; } export class Vault extends core.Resource { /** * The ARN of the vault. */ @core.attr(String, { computed: true }) public arn!: string | core.StringOut; /** * (Optional, Default: `false`) A boolean that indicates that all recovery points stored in the vault a * re deleted so that the vault can be destroyed without error. */ @core.attr(Boolean) public forceDestroy?: boolean | core.BooleanOut; /** * The name of the vault. */ @core.attr(String, { computed: true }) public id!: string | core.StringOut; /** * (Optional) The server-side encryption key that is used to protect your backups. */ @core.attr(String, { computed: true }) public kmsKeyArn?: string | core.StringOut; /** * (Required) Name of the backup vault to create. */ @core.attr(String) public name!: string | core.StringOut; /** * The number of recovery points that are stored in a backup vault. */ @core.attr(Number, { computed: true }) public recoveryPoints!: number | core.NumberOut; /** * (Optional) Metadata that you can assign to help organize the resources that you create. If configure * d with a provider [`default_tags` configuration block](https://registry.terraform.io/providers/hashi * corp/aws/latest/docs#default_tags-configuration-block) present, tags with matching keys will overwri * te those defined at the provider-level. */ @core.attr(String, { kind: "map" }) public tags?: core.Map | core.MapOut; /** * A map of tags assigned to the resource, including those inherited from the provider [`default_tags` * configuration block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#default_tags- * configuration-block). */ @core.attr(String, { computed: true, kind: "map" }) public tagsAll?: core.Map | core.MapOut; constructor(name: string, args?: VaultArgs) { super(name, "aws_backup_vault", args); } public override getNamespace(): string { return "aws_backup"; } }