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 DsEipArgs {
  filter?: core.Array<Filter> | core.ArrayOut<Filter>;

  id?: string | core.StringOut;

  publicIp?: string | core.StringOut;

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

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

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

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

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

  @core.attr(String, { computed: true })
  public domain!: string | 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 })
  public instanceId!: string | core.StringOut;

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

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

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

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

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

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

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

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

  constructor(name: string, args?: DsEipArgs) {
    super(name, "aws_eip", args);
  }

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