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

export interface AttachmentArgs extends core.ResourceArgs {
  elb: string | core.StringOut;

  instance: string | core.StringOut;
}

export class Attachment extends core.Resource<AttachmentArgs> {
  @core.attr(String)
  public elb!: string | core.StringOut;

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

  @core.attr(String)
  public instance!: string | core.StringOut;

  constructor(name: string, args?: AttachmentArgs) {
    super(name, "aws_elb_attachment", args);
  }

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