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

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

  name?: string | core.StringOut;

  state?: string | core.StringOut;

  zoneId?: string | core.StringOut;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

  constructor(name: string, args?: DsAvailabilityZoneArgs) {
    super(name, "aws_availability_zone", args);
  }

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