// generated from terraform resource schema import { Construct } from 'constructs'; import * as cdktf from 'cdktf'; /** * AWS VPC */ export interface VpnGatewayAttachmentConfig extends cdktf.TerraformMetaArguments { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/vpn_gateway_attachment.html#vpc_id VpnGatewayAttachment#vpc_id} */ readonly vpcId: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/vpn_gateway_attachment.html#vpn_gateway_id VpnGatewayAttachment#vpn_gateway_id} */ readonly vpnGatewayId: string; } /** * Represents a {@link https://www.terraform.io/docs/providers/aws/r/vpn_gateway_attachment.html aws_vpn_gateway_attachment} */ export class VpnGatewayAttachment extends cdktf.TerraformResource { // ================= // STATIC PROPERTIES // ================= public static readonly tfResourceType: string = "aws_vpn_gateway_attachment"; // =========== // INITIALIZER // =========== /** * Create a new {@link https://www.terraform.io/docs/providers/aws/r/vpn_gateway_attachment.html aws_vpn_gateway_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 VpnGatewayAttachmentConfig */ public constructor(scope: Construct, id: string, config: VpnGatewayAttachmentConfig) { super(scope, id, { terraformResourceType: 'aws_vpn_gateway_attachment', terraformGeneratorMetadata: { providerName: 'aws' }, provider: config.provider, dependsOn: config.dependsOn, count: config.count, lifecycle: config.lifecycle }); this._vpcId = config.vpcId; this._vpnGatewayId = config.vpnGatewayId; } // ========== // ATTRIBUTES // ========== // id - computed: true, optional: true, required: false public get id() { return this.getStringAttribute('id'); } // vpc_id - computed: false, optional: false, required: true private _vpcId?: string; public get vpcId() { return this.getStringAttribute('vpc_id'); } public set vpcId(value: string) { this._vpcId = value; } // Temporarily expose input value. Use with caution. public get vpcIdInput() { return this._vpcId; } // vpn_gateway_id - computed: false, optional: false, required: true private _vpnGatewayId?: string; public get vpnGatewayId() { return this.getStringAttribute('vpn_gateway_id'); } public set vpnGatewayId(value: string) { this._vpnGatewayId = value; } // Temporarily expose input value. Use with caution. public get vpnGatewayIdInput() { return this._vpnGatewayId; } // ========= // SYNTHESIS // ========= protected synthesizeAttributes(): { [name: string]: any } { return { vpc_id: cdktf.stringToTerraform(this._vpcId), vpn_gateway_id: cdktf.stringToTerraform(this._vpnGatewayId), }; } }