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

export interface DsOrderableDbInstanceArgs {
  /**
   * (Optional) DB engine. (Default: `neptune`)
   */
  engine?: string | core.StringOut;

  /**
   * (Optional) Version of the DB engine. For example, `1.0.1.0`, `1.0.1.2`, `1.0.2.2`, and `1.0.3.0`.
   */
  engineVersion?: string | core.StringOut;

  /**
   * (Optional) DB instance class. Examples of classes are `db.r5.large`, `db.r5.xlarge`, `db.r4.large`,
   * db.r5.4xlarge`, `db.r5.12xlarge`, `db.r4.xlarge`, and `db.t3.medium`.
   */
  instanceClass?: string | core.StringOut;

  /**
   * (Optional) License model. (Default: `amazon-license`)
   */
  licenseModel?: string | core.StringOut;

  /**
   * (Optional) Ordered list of preferred Neptune DB instance classes. The first match in this list will
   * be returned. If no preferred matches are found and the original search returned more than one result
   * , an error is returned.
   */
  preferredInstanceClasses?: core.Array<string> | core.ArrayOut<core.StringOut>;

  /**
   * (Optional) Enable to show only VPC offerings.
   */
  vpc?: boolean | core.BooleanOut;
}

export class DsOrderableDbInstance extends core.Data<DsOrderableDbInstanceArgs> {
  /**
   * Availability zones where the instance is available.
   */
  @core.attr(String, { computed: true, kind: "array" })
  public availabilityZones!: core.Array<string> | core.ArrayOut<core.StringOut>;

  /**
   * (Optional) DB engine. (Default: `neptune`)
   */
  @core.attr(String)
  public engine?: string | core.StringOut;

  /**
   * (Optional) Version of the DB engine. For example, `1.0.1.0`, `1.0.1.2`, `1.0.2.2`, and `1.0.3.0`.
   */
  @core.attr(String, { computed: true })
  public engineVersion?: string | core.StringOut;

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

  /**
   * (Optional) DB instance class. Examples of classes are `db.r5.large`, `db.r5.xlarge`, `db.r4.large`,
   * db.r5.4xlarge`, `db.r5.12xlarge`, `db.r4.xlarge`, and `db.t3.medium`.
   */
  @core.attr(String, { computed: true })
  public instanceClass?: string | core.StringOut;

  /**
   * (Optional) License model. (Default: `amazon-license`)
   */
  @core.attr(String)
  public licenseModel?: string | core.StringOut;

  /**
   * Maximum total provisioned IOPS for a DB instance.
   */
  @core.attr(Number, { computed: true })
  public maxIopsPerDbInstance!: number | core.NumberOut;

  /**
   * Maximum provisioned IOPS per GiB for a DB instance.
   */
  @core.attr(Number, { computed: true })
  public maxIopsPerGib!: number | core.NumberOut;

  /**
   * Maximum storage size for a DB instance.
   */
  @core.attr(Number, { computed: true })
  public maxStorageSize!: number | core.NumberOut;

  /**
   * Minimum total provisioned IOPS for a DB instance.
   */
  @core.attr(Number, { computed: true })
  public minIopsPerDbInstance!: number | core.NumberOut;

  /**
   * Minimum provisioned IOPS per GiB for a DB instance.
   */
  @core.attr(Number, { computed: true })
  public minIopsPerGib!: number | core.NumberOut;

  /**
   * Minimum storage size for a DB instance.
   */
  @core.attr(Number, { computed: true })
  public minStorageSize!: number | core.NumberOut;

  /**
   * Whether a DB instance is Multi-AZ capable.
   */
  @core.attr(Boolean, { computed: true })
  public multiAzCapable!: boolean | core.BooleanOut;

  /**
   * (Optional) Ordered list of preferred Neptune DB instance classes. The first match in this list will
   * be returned. If no preferred matches are found and the original search returned more than one result
   * , an error is returned.
   */
  @core.attr(String, { kind: "array" })
  public preferredInstanceClasses?:
    | core.Array<string>
    | core.ArrayOut<core.StringOut>;

  /**
   * Whether a DB instance can have a read replica.
   */
  @core.attr(Boolean, { computed: true })
  public readReplicaCapable!: boolean | core.BooleanOut;

  /**
   * The storage type for a DB instance.
   */
  @core.attr(String, { computed: true })
  public storageType!: string | core.StringOut;

  /**
   * Whether a DB instance supports Enhanced Monitoring at intervals from 1 to 60 seconds.
   */
  @core.attr(Boolean, { computed: true })
  public supportsEnhancedMonitoring!: boolean | core.BooleanOut;

  /**
   * Whether a DB instance supports IAM database authentication.
   */
  @core.attr(Boolean, { computed: true })
  public supportsIamDatabaseAuthentication!: boolean | core.BooleanOut;

  /**
   * Whether a DB instance supports provisioned IOPS.
   */
  @core.attr(Boolean, { computed: true })
  public supportsIops!: boolean | core.BooleanOut;

  /**
   * Whether a DB instance supports Performance Insights.
   */
  @core.attr(Boolean, { computed: true })
  public supportsPerformanceInsights!: boolean | core.BooleanOut;

  /**
   * Whether a DB instance supports encrypted storage.
   */
  @core.attr(Boolean, { computed: true })
  public supportsStorageEncryption!: boolean | core.BooleanOut;

  /**
   * (Optional) Enable to show only VPC offerings.
   */
  @core.attr(Boolean, { computed: true })
  public vpc?: boolean | core.BooleanOut;

  constructor(name: string, args?: DsOrderableDbInstanceArgs) {
    super(name, "aws_neptune_orderable_db_instance", args);
  }

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