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 DsDhcpOptionsArgs {
  dhcpOptionsId?: string | core.StringOut;

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

  tags?: core.Map<string, string> | core.MapOut<core.StringOut>;
}

export class DsDhcpOptions extends core.Data<DsDhcpOptionsArgs> {
  @core.attr(String, { computed: true })
  public arn!: string | core.StringOut;

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

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

  @core.attr(String, { computed: true, kind: "array" })
  public domainNameServers!: 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 })
  public id!: string | core.StringOut;

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

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

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

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

  @core.attr(String, { computed: true, kind: "map" })
  public tags?: core.Map<string, string> | core.MapOut<core.StringOut>;

  constructor(name: string, args?: DsDhcpOptionsArgs) {
    super(name, "aws_vpc_dhcp_options", args);
  }

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