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

export interface VolumeArgs extends core.ResourceArgs {
  availabilityZone: string | core.StringOut;

  encrypted?: boolean | core.BooleanOut;

  finalSnapshot?: boolean | core.BooleanOut;

  iops?: number | core.NumberOut;

  kmsKeyId?: string | core.StringOut;

  multiAttachEnabled?: boolean | core.BooleanOut;

  outpostArn?: string | core.StringOut;

  size?: number | core.NumberOut;

  snapshotId?: string | core.StringOut;

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

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

  throughput?: number | core.NumberOut;

  type?: string | core.StringOut;
}

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

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

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

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

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

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

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

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

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

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

  @core.attr(String, { computed: true })
  public snapshotId?: 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, { computed: true })
  public throughput?: number | core.NumberOut;

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

  constructor(name: string, args?: VolumeArgs) {
    super(name, "aws_ebs_volume", args);
  }

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