// generated from terraform resource schema import { Construct } from 'constructs'; import * as cdktf from 'cdktf'; /** * AWS VPC */ export interface NetworkInterfaceAttachmentAConfig extends cdktf.TerraformMetaArguments { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/network_interface_attachment.html#device_index NetworkInterfaceAttachmentA#device_index} */ readonly deviceIndex: number; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/network_interface_attachment.html#instance_id NetworkInterfaceAttachmentA#instance_id} */ readonly instanceId: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/network_interface_attachment.html#network_interface_id NetworkInterfaceAttachmentA#network_interface_id} */ readonly networkInterfaceId: string; } /** * Represents a {@link https://www.terraform.io/docs/providers/aws/r/network_interface_attachment.html aws_network_interface_attachment} */ export class NetworkInterfaceAttachmentA extends cdktf.TerraformResource { // ================= // STATIC PROPERTIES // ================= public static readonly tfResourceType: string = "aws_network_interface_attachment"; // =========== // INITIALIZER // =========== /** * Create a new {@link https://www.terraform.io/docs/providers/aws/r/network_interface_attachment.html aws_network_interface_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 NetworkInterfaceAttachmentAConfig */ public constructor(scope: Construct, id: string, config: NetworkInterfaceAttachmentAConfig) { super(scope, id, { terraformResourceType: 'aws_network_interface_attachment', terraformGeneratorMetadata: { providerName: 'aws' }, provider: config.provider, dependsOn: config.dependsOn, count: config.count, lifecycle: config.lifecycle }); this._deviceIndex = config.deviceIndex; this._instanceId = config.instanceId; this._networkInterfaceId = config.networkInterfaceId; } // ========== // ATTRIBUTES // ========== // attachment_id - computed: true, optional: false, required: false public get attachmentId() { return this.getStringAttribute('attachment_id'); } // device_index - computed: false, optional: false, required: true private _deviceIndex?: number; public get deviceIndex() { return this.getNumberAttribute('device_index'); } public set deviceIndex(value: number) { this._deviceIndex = value; } // Temporarily expose input value. Use with caution. public get deviceIndexInput() { return this._deviceIndex; } // id - computed: true, optional: true, required: false public get id() { return this.getStringAttribute('id'); } // instance_id - computed: false, optional: false, required: true private _instanceId?: string; public get instanceId() { return this.getStringAttribute('instance_id'); } public set instanceId(value: string) { this._instanceId = value; } // Temporarily expose input value. Use with caution. public get instanceIdInput() { return this._instanceId; } // 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; } // status - computed: true, optional: false, required: false public get status() { return this.getStringAttribute('status'); } // ========= // SYNTHESIS // ========= protected synthesizeAttributes(): { [name: string]: any } { return { device_index: cdktf.numberToTerraform(this._deviceIndex), instance_id: cdktf.stringToTerraform(this._instanceId), network_interface_id: cdktf.stringToTerraform(this._networkInterfaceId), }; } }