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

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

  autoscalingGroupName: string | core.StringOut;

  elb?: string | core.StringOut;

  lbTargetGroupArn?: string | core.StringOut;
}

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

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

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

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

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

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

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