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

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

  /**
   * (Optional) Version of the DB engine.
   */
  engineVersion?: string | core.StringOut;

  /**
   * (Optional) DB instance class. Examples of classes are `db.r5.12xlarge`, `db.r5.24xlarge`, `db.r5.2xl
   * arge`, `db.r5.4xlarge`, `db.r5.large`, `db.r5.xlarge`, and `db.t3.medium`. (Conflicts with `preferre
   * d_instance_classes`.)
   */
  instanceClass?: string | core.StringOut;

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

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

  /**
   * (Optional) Enable to show only VPC.
   */
  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: `docdb`
   */
  @core.attr(String)
  public engine?: string | core.StringOut;

  /**
   * (Optional) Version of the DB engine.
   */
  @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.12xlarge`, `db.r5.24xlarge`, `db.r5.2xl
   * arge`, `db.r5.4xlarge`, `db.r5.large`, `db.r5.xlarge`, and `db.t3.medium`. (Conflicts with `preferre
   * d_instance_classes`.)
   */
  @core.attr(String, { computed: true })
  public instanceClass?: string | core.StringOut;

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

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

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

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

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