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

export interface VaultLockArgs extends core.ResourceArgs {
  completeLock: boolean | core.BooleanOut;

  ignoreDeletionError?: boolean | core.BooleanOut;

  policy: string | core.StringOut;

  vaultName: string | core.StringOut;
}

export class VaultLock extends core.Resource<VaultLockArgs> {
  @core.attr(Boolean)
  public completeLock!: boolean | core.BooleanOut;

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

  @core.attr(Boolean)
  public ignoreDeletionError?: boolean | core.BooleanOut;

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

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

  constructor(name: string, args?: VaultLockArgs) {
    super(name, "aws_glacier_vault_lock", args);
  }

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