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

export interface EphemeralBlockDeviceArgs extends core.SchemaArgs {
  deviceName: string | core.StringOut;

  virtualName: string | core.StringOut;
}

export class EphemeralBlockDevice extends core.Schema<EphemeralBlockDeviceArgs> {
  @core.attr(String, { computed: true })
  public deviceName!: string | core.StringOut;

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

export interface EbsBlockDeviceArgs extends core.SchemaArgs {
  deleteOnTermination: boolean | core.BooleanOut;

  deviceName: string | core.StringOut;

  encrypted: boolean | core.BooleanOut;

  iops: number | core.NumberOut;

  outpostArn: string | core.StringOut;

  snapshotId: string | core.StringOut;

  throughput: number | core.NumberOut;

  volumeSize: number | core.NumberOut;

  volumeType: string | core.StringOut;
}

export class EbsBlockDevice extends core.Schema<EbsBlockDeviceArgs> {
  @core.attr(Boolean, { computed: true })
  public deleteOnTermination!: boolean | core.BooleanOut;

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

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

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

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

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

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

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

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

export interface AmiCopyArgs extends core.ResourceArgs {
  deprecationTime?: string | core.StringOut;

  description?: string | core.StringOut;

  destinationOutpostArn?: string | core.StringOut;

  ebsBlockDevice?: core.Array<EbsBlockDevice> | core.ArrayOut<EbsBlockDevice>;

  encrypted?: boolean | core.BooleanOut;

  ephemeralBlockDevice?:
    | core.Array<EphemeralBlockDevice>
    | core.ArrayOut<EphemeralBlockDevice>;

  kmsKeyId?: string | core.StringOut;

  name: string | core.StringOut;

  sourceAmiId: string | core.StringOut;

  sourceAmiRegion: string | core.StringOut;

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

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

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

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

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

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

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

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

  @core.attr(EbsBlockDevice, { computed: true, kind: "array" })
  public ebsBlockDevice?:
    | core.Array<EbsBlockDevice>
    | core.ArrayOut<EbsBlockDevice>;

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

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

  @core.attr(EphemeralBlockDevice, { computed: true, kind: "array" })
  public ephemeralBlockDevice?:
    | core.Array<EphemeralBlockDevice>
    | core.ArrayOut<EphemeralBlockDevice>;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

  @core.attr(String, { computed: true })
  public sriovNetSupport!: 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(String, { computed: true })
  public tpmSupport!: string | core.StringOut;

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

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

  constructor(name: string, args?: AmiCopyArgs) {
    super(name, "aws_ami_copy", args);
  }

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