import * as core from "@terrascript/core";

export interface VaultLockConfigurationArgs extends core.ResourceArgs {
  backupVaultName: string | core.StringOut;

  changeableForDays?: number | core.NumberOut;

  maxRetentionDays?: number | core.NumberOut;

  minRetentionDays?: number | core.NumberOut;
}

export class VaultLockConfiguration extends core.Resource<VaultLockConfigurationArgs> {
  @core.attr(String, { computed: true })
  public backupVaultArn!: string | core.StringOut;

  @core.attr(String)
  public backupVaultName!: string | core.StringOut;

  @core.attr(Number)
  public changeableForDays?: number | core.NumberOut;

  @core.attr(String, { computed: true })
  public id!: string | core.StringOut;

  @core.attr(Number)
  public maxRetentionDays?: number | core.NumberOut;

  @core.attr(Number)
  public minRetentionDays?: number | core.NumberOut;

  constructor(name: string, args?: VaultLockConfigurationArgs) {
    super(name, "aws_backup_vault_lock_configuration", args);
  }

  public override getNamespace(): string {
    return "aws_backup";
  }
}
