// generated from terraform resource schema import { Construct } from 'constructs'; import * as cdktf from 'cdktf'; /** * AWS Auto Scaling */ export interface AutoscalingAttachmentConfig extends cdktf.TerraformMetaArguments { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/autoscaling_attachment.html#alb_target_group_arn AutoscalingAttachment#alb_target_group_arn} */ readonly albTargetGroupArn?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/autoscaling_attachment.html#autoscaling_group_name AutoscalingAttachment#autoscaling_group_name} */ readonly autoscalingGroupName: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/autoscaling_attachment.html#elb AutoscalingAttachment#elb} */ readonly elb?: string; } /** * Represents a {@link https://www.terraform.io/docs/providers/aws/r/autoscaling_attachment.html aws_autoscaling_attachment} */ export class AutoscalingAttachment extends cdktf.TerraformResource { // ================= // STATIC PROPERTIES // ================= public static readonly tfResourceType: string = "aws_autoscaling_attachment"; // =========== // INITIALIZER // =========== /** * Create a new {@link https://www.terraform.io/docs/providers/aws/r/autoscaling_attachment.html aws_autoscaling_attachment} Resource * * @param scope The scope in which to define this construct * @param id The scoped construct ID. Must be unique amongst siblings in the same scope * @param options AutoscalingAttachmentConfig */ public constructor(scope: Construct, id: string, config: AutoscalingAttachmentConfig) { super(scope, id, { terraformResourceType: 'aws_autoscaling_attachment', terraformGeneratorMetadata: { providerName: 'aws' }, provider: config.provider, dependsOn: config.dependsOn, count: config.count, lifecycle: config.lifecycle }); this._albTargetGroupArn = config.albTargetGroupArn; this._autoscalingGroupName = config.autoscalingGroupName; this._elb = config.elb; } // ========== // ATTRIBUTES // ========== // alb_target_group_arn - computed: false, optional: true, required: false private _albTargetGroupArn?: string; public get albTargetGroupArn() { return this.getStringAttribute('alb_target_group_arn'); } public set albTargetGroupArn(value: string) { this._albTargetGroupArn = value; } public resetAlbTargetGroupArn() { this._albTargetGroupArn = undefined; } // Temporarily expose input value. Use with caution. public get albTargetGroupArnInput() { return this._albTargetGroupArn; } // autoscaling_group_name - computed: false, optional: false, required: true private _autoscalingGroupName?: string; public get autoscalingGroupName() { return this.getStringAttribute('autoscaling_group_name'); } public set autoscalingGroupName(value: string) { this._autoscalingGroupName = value; } // Temporarily expose input value. Use with caution. public get autoscalingGroupNameInput() { return this._autoscalingGroupName; } // elb - computed: false, optional: true, required: false private _elb?: string; public get elb() { return this.getStringAttribute('elb'); } public set elb(value: string) { this._elb = value; } public resetElb() { this._elb = undefined; } // Temporarily expose input value. Use with caution. public get elbInput() { return this._elb; } // id - computed: true, optional: true, required: false public get id() { return this.getStringAttribute('id'); } // ========= // SYNTHESIS // ========= protected synthesizeAttributes(): { [name: string]: any } { return { alb_target_group_arn: cdktf.stringToTerraform(this._albTargetGroupArn), autoscaling_group_name: cdktf.stringToTerraform(this._autoscalingGroupName), elb: cdktf.stringToTerraform(this._elb), }; } }