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

export interface DnsOptionsArgs extends core.SchemaArgs {
  dnsRecordIpType: string | core.StringOut;
}

export class DnsOptions extends core.Schema<DnsOptionsArgs> {
  @core.attr(String, { computed: true })
  public dnsRecordIpType!: string | core.StringOut;
}

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 DnsEntryArgs extends core.SchemaArgs {
  dnsName: string | core.StringOut;

  hostedZoneId: string | core.StringOut;
}

export class DnsEntry extends core.Schema<DnsEntryArgs> {
  @core.attr(String, { computed: true })
  public dnsName!: string | core.StringOut;

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

export interface DsEndpointArgs {
  filter?: core.Array<Filter> | core.ArrayOut<Filter>;

  id?: string | core.StringOut;

  serviceName?: string | core.StringOut;

  state?: string | core.StringOut;

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

  vpcId?: string | core.StringOut;
}

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

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

  @core.attr(DnsEntry, { computed: true, kind: "array" })
  public dnsEntry!: core.Array<DnsEntry> | core.ArrayOut<DnsEntry>;

  @core.attr(DnsOptions, { computed: true, kind: "array" })
  public dnsOptions!: core.Array<DnsOptions> | core.ArrayOut<DnsOptions>;

  @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 })
  public ipAddressType!: string | core.StringOut;

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

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

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

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

  @core.attr(Boolean, { computed: true })
  public privateDnsEnabled!: boolean | core.BooleanOut;

  @core.attr(Boolean, { computed: true })
  public requesterManaged!: boolean | core.BooleanOut;

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

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

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

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

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

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

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

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

  constructor(name: string, args?: DsEndpointArgs) {
    super(name, "aws_vpc_endpoint", args);
  }

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