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

export interface InstanceDisksArgs extends core.SchemaArgs {
  count: number | core.NumberOut;

  size: number | core.NumberOut;

  type: string | core.StringOut;
}

export class InstanceDisks extends core.Schema<InstanceDisksArgs> {
  @core.attr(Number, { computed: true })
  public count!: number | core.NumberOut;

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

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

export interface InferenceAcceleratorsArgs extends core.SchemaArgs {
  count: number | core.NumberOut;

  manufacturer: string | core.StringOut;

  name: string | core.StringOut;
}

export class InferenceAccelerators extends core.Schema<InferenceAcceleratorsArgs> {
  @core.attr(Number, { computed: true })
  public count!: number | core.NumberOut;

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

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

export interface FpgasArgs extends core.SchemaArgs {
  count: number | core.NumberOut;

  manufacturer: string | core.StringOut;

  memorySize: number | core.NumberOut;

  name: string | core.StringOut;
}

export class Fpgas extends core.Schema<FpgasArgs> {
  @core.attr(Number, { computed: true })
  public count!: number | core.NumberOut;

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

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

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

export interface GpusArgs extends core.SchemaArgs {
  count: number | core.NumberOut;

  manufacturer: string | core.StringOut;

  memorySize: number | core.NumberOut;

  name: string | core.StringOut;
}

export class Gpus extends core.Schema<GpusArgs> {
  @core.attr(Number, { computed: true })
  public count!: number | core.NumberOut;

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

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

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

export interface DsInstanceTypeArgs {
  instanceType: string | core.StringOut;
}

export class DsInstanceType extends core.Data<DsInstanceTypeArgs> {
  @core.attr(Boolean, { computed: true })
  public autoRecoverySupported!: boolean | core.BooleanOut;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

  @core.attr(Number, { computed: true, kind: "array" })
  public validCores!: core.Array<number> | core.ArrayOut<core.NumberOut>;

  @core.attr(Number, { computed: true, kind: "array" })
  public validThreadsPerCore!:
    | core.Array<number>
    | core.ArrayOut<core.NumberOut>;

  constructor(name: string, args?: DsInstanceTypeArgs) {
    super(name, "aws_ec2_instance_type", args);
  }

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