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

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

  deviceName: string | core.StringOut;

  encrypted: boolean | core.BooleanOut;

  iops: number | core.NumberOut;

  kmsKeyId: string | core.StringOut;

  snapshotId: string | core.StringOut;

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

  throughput: number | core.NumberOut;

  volumeId: string | core.StringOut;

  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 kmsKeyId!: string | core.StringOut;

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

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

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

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

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

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

export interface PrivateDnsNameOptionsArgs extends core.SchemaArgs {
  enableResourceNameDnsARecord: boolean | core.BooleanOut;

  enableResourceNameDnsAaaaRecord: boolean | core.BooleanOut;

  hostnameType: string | core.StringOut;
}

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

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

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

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

  noDevice?: boolean | core.BooleanOut;

  virtualName?: string | core.StringOut;
}

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

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

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

export interface EnclaveOptionsArgs extends core.SchemaArgs {
  enabled: boolean | core.BooleanOut;
}

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

export interface FilterArgs extends core.SchemaArgs {
  name: string | core.StringOut;

  values: core.Array<string> | core.ArrayOut<core.StringOut>;
}

export class Filter extends core.Schema<FilterArgs> {
  @core.attr(String)
  public name!: string | core.StringOut;

  @core.attr(String, { kind: "array" })
  public values!: core.Array<string> | core.ArrayOut<core.StringOut>;
}

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

  deviceName: string | core.StringOut;

  encrypted: boolean | core.BooleanOut;

  iops: number | core.NumberOut;

  kmsKeyId: string | core.StringOut;

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

  throughput: number | core.NumberOut;

  volumeId: string | core.StringOut;

  volumeSize: number | core.NumberOut;

  volumeType: string | core.StringOut;
}

export class RootBlockDevice extends core.Schema<RootBlockDeviceArgs> {
  @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 kmsKeyId!: string | core.StringOut;

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

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

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

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

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

export interface MaintenanceOptionsArgs extends core.SchemaArgs {
  autoRecovery: string | core.StringOut;
}

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

export interface CreditSpecificationArgs extends core.SchemaArgs {
  cpuCredits: string | core.StringOut;
}

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

export interface MetadataOptionsArgs extends core.SchemaArgs {
  httpEndpoint: string | core.StringOut;

  httpPutResponseHopLimit: number | core.NumberOut;

  httpTokens: string | core.StringOut;

  instanceMetadataTags: string | core.StringOut;
}

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

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

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

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

export interface DsInstanceArgs {
  filter?: core.Array<Filter> | core.ArrayOut<Filter>;

  getPasswordData?: boolean | core.BooleanOut;

  getUserData?: boolean | core.BooleanOut;

  instanceId?: string | core.StringOut;

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

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

export class DsInstance extends core.Data<DsInstanceArgs> {
  @core.attr(String, { computed: true })
  public ami!: string | core.StringOut;

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

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

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

  @core.attr(CreditSpecification, { computed: true, kind: "array" })
  public creditSpecification!:
    | core.Array<CreditSpecification>
    | core.ArrayOut<CreditSpecification>;

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

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

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

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

  @core.attr(EnclaveOptions, { computed: true, kind: "array" })
  public enclaveOptions!:
    | core.Array<EnclaveOptions>
    | core.ArrayOut<EnclaveOptions>;

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

  @core.attr(Filter, { kind: "array" })
  public filter?: core.Array<Filter> | core.ArrayOut<Filter>;

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

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

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

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

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

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

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

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

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

  @core.attr(String, { computed: true, kind: "array" })
  public ipv6Addresses!: core.Array<string> | core.ArrayOut<core.StringOut>;

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

  @core.attr(MaintenanceOptions, { computed: true, kind: "array" })
  public maintenanceOptions!:
    | core.Array<MaintenanceOptions>
    | core.ArrayOut<MaintenanceOptions>;

  @core.attr(MetadataOptions, { computed: true, kind: "array" })
  public metadataOptions!:
    | core.Array<MetadataOptions>
    | core.ArrayOut<MetadataOptions>;

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

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

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

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

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

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

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

  @core.attr(PrivateDnsNameOptions, { computed: true, kind: "array" })
  public privateDnsNameOptions!:
    | core.Array<PrivateDnsNameOptions>
    | core.ArrayOut<PrivateDnsNameOptions>;

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

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

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

  @core.attr(RootBlockDevice, { computed: true, kind: "array" })
  public rootBlockDevice!:
    | core.Array<RootBlockDevice>
    | core.ArrayOut<RootBlockDevice>;

  @core.attr(String, { computed: true, kind: "array" })
  public secondaryPrivateIps!:
    | core.Array<string>
    | core.ArrayOut<core.StringOut>;

  @core.attr(String, { computed: true, kind: "array" })
  public securityGroups!: core.Array<string> | core.ArrayOut<core.StringOut>;

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

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

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

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

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

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

  @core.attr(String, { computed: true, kind: "array" })
  public vpcSecurityGroupIds!:
    | core.Array<string>
    | core.ArrayOut<core.StringOut>;

  constructor(name: string, args?: DsInstanceArgs) {
    super(name, "aws_instance", args);
  }

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