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

export interface EipArgs extends core.ResourceArgs {
  address?: string | core.StringOut;

  associateWithPrivateIp?: string | core.StringOut;

  customerOwnedIpv4Pool?: string | core.StringOut;

  instance?: string | core.StringOut;

  networkBorderGroup?: string | core.StringOut;

  networkInterface?: string | core.StringOut;

  publicIpv4Pool?: string | core.StringOut;

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

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

  vpc?: boolean | core.BooleanOut;
}

export class Eip extends core.Resource<EipArgs> {
  @core.attr(String)
  public address?: string | core.StringOut;

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

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

  @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)
  public customerOwnedIpv4Pool?: string | core.StringOut;

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

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

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

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

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

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

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

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

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