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

export interface EipAssociationArgs extends core.ResourceArgs {
  allocationId?: string | core.StringOut;

  allowReassociation?: boolean | core.BooleanOut;

  instanceId?: string | core.StringOut;

  networkInterfaceId?: string | core.StringOut;

  privateIpAddress?: string | core.StringOut;

  publicIp?: string | core.StringOut;
}

export class EipAssociation extends core.Resource<EipAssociationArgs> {
  @core.attr(String, { computed: true })
  public allocationId?: string | core.StringOut;

  @core.attr(Boolean)
  public allowReassociation?: boolean | core.BooleanOut;

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

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

  constructor(name: string, args?: EipAssociationArgs) {
    super(name, "aws_eip_association", args);
  }

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