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

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 DsAvailabilityZonesArgs {
  allAvailabilityZones?: boolean | core.BooleanOut;

  excludeNames?: core.Array<string> | core.ArrayOut<core.StringOut>;

  excludeZoneIds?: core.Array<string> | core.ArrayOut<core.StringOut>;

  filter?: core.Array<Filter> | core.ArrayOut<Filter>;

  state?: string | core.StringOut;
}

export class DsAvailabilityZones extends core.Data<DsAvailabilityZonesArgs> {
  @core.attr(Boolean)
  public allAvailabilityZones?: boolean | core.BooleanOut;

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

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

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

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

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

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

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

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

  constructor(name: string, args?: DsAvailabilityZonesArgs) {
    super(name, "aws_availability_zones", args);
  }

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