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

export interface LbTargetGroupAttachmentArgs extends core.ResourceArgs {
  availabilityZone?: string | core.StringOut;

  port?: number | core.NumberOut;

  targetGroupArn: string | core.StringOut;

  targetId: string | core.StringOut;
}

export class LbTargetGroupAttachment extends core.Resource<LbTargetGroupAttachmentArgs> {
  @core.attr(String)
  public availabilityZone?: string | core.StringOut;

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

  @core.attr(Number)
  public port?: number | core.NumberOut;

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

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

  constructor(name: string, args?: LbTargetGroupAttachmentArgs) {
    super(name, "aws_lb_target_group_attachment", args);
  }

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