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