import * as core from "@terrascript/core"; export interface AttachmentArgs extends core.ResourceArgs { /** * (Optional, **Deprecated** use `lb_target_group_arn` instead) The ARN of an ALB Target Group. */ albTargetGroupArn?: string | core.StringOut; /** * (Required) Name of ASG to associate with the ELB. */ autoscalingGroupName: string | core.StringOut; /** * (Optional) The name of the ELB. */ elb?: string | core.StringOut; /** * (Optional) The ARN of a load balancer target group. */ lbTargetGroupArn?: string | core.StringOut; } export class Attachment extends core.Resource { /** * (Optional, **Deprecated** use `lb_target_group_arn` instead) The ARN of an ALB Target Group. */ @core.attr(String) public albTargetGroupArn?: string | core.StringOut; /** * (Required) Name of ASG to associate with the ELB. */ @core.attr(String) public autoscalingGroupName!: string | core.StringOut; /** * (Optional) The name of the ELB. */ @core.attr(String) public elb?: string | core.StringOut; @core.attr(String, { computed: true }) public id!: string | core.StringOut; /** * (Optional) The ARN of a load balancer target group. */ @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"; } }