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

export interface SnapshotArgs extends core.ResourceArgs {
  description?: string | core.StringOut;

  outpostArn?: string | core.StringOut;

  permanentRestore?: boolean | core.BooleanOut;

  storageTier?: string | core.StringOut;

  tags?: core.Map<string, string> | core.MapOut<core.StringOut>;

  tagsAll?: core.Map<string, string> | core.MapOut<core.StringOut>;

  temporaryRestoreDays?: number | core.NumberOut;

  volumeId: string | core.StringOut;
}

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

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

  @core.attr(String)
  public description?: string | core.StringOut;

  @core.attr(Boolean, { computed: true })
  public encrypted!: boolean | core.BooleanOut;

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

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

  @core.attr(String)
  public outpostArn?: string | core.StringOut;

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

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

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

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

  @core.attr(String, { kind: "map" })
  public tags?: core.Map<string, string> | core.MapOut<core.StringOut>;

  @core.attr(String, { computed: true, kind: "map" })
  public tagsAll?: core.Map<string, string> | core.MapOut<core.StringOut>;

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

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

  @core.attr(Number, { computed: true })
  public volumeSize!: number | core.NumberOut;

  constructor(name: string, args?: SnapshotArgs) {
    super(name, "aws_ebs_snapshot", args);
  }

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