import { Command as $Command } from "@smithy/smithy-client"; import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { EC2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EC2Client"; import type { AttachNetworkInterfaceRequest, AttachNetworkInterfaceResult } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link AttachNetworkInterfaceCommand}. */ export interface AttachNetworkInterfaceCommandInput extends AttachNetworkInterfaceRequest { } /** * @public * * The output of {@link AttachNetworkInterfaceCommand}. */ export interface AttachNetworkInterfaceCommandOutput extends AttachNetworkInterfaceResult, __MetadataBearer { } declare const AttachNetworkInterfaceCommand_base: { new (input: AttachNetworkInterfaceCommandInput): import("@smithy/smithy-client").CommandImpl; new (input: AttachNetworkInterfaceCommandInput): import("@smithy/smithy-client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** *

Attaches a network interface to an instance.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { EC2Client, AttachNetworkInterfaceCommand } from "@aws-sdk/client-ec2"; // ES Modules import * // const { EC2Client, AttachNetworkInterfaceCommand } = require("@aws-sdk/client-ec2"); // CommonJS import * // import type { EC2ClientConfig } from "@aws-sdk/client-ec2"; * const config = {}; // type is EC2ClientConfig * const client = new EC2Client(config); * const input = { // AttachNetworkInterfaceRequest * NetworkCardIndex: Number("int"), * EnaSrdSpecification: { // EnaSrdSpecification * EnaSrdEnabled: true || false, * EnaSrdUdpSpecification: { // EnaSrdUdpSpecification * EnaSrdUdpEnabled: true || false, * }, * }, * EnaQueueCount: Number("int"), * DryRun: true || false, * NetworkInterfaceId: "STRING_VALUE", // required * InstanceId: "STRING_VALUE", // required * DeviceIndex: Number("int"), // required * }; * const command = new AttachNetworkInterfaceCommand(input); * const response = await client.send(command); * // { // AttachNetworkInterfaceResult * // AttachmentId: "STRING_VALUE", * // NetworkCardIndex: Number("int"), * // }; * * ``` * * @param AttachNetworkInterfaceCommandInput - {@link AttachNetworkInterfaceCommandInput} * @returns {@link AttachNetworkInterfaceCommandOutput} * @see {@link AttachNetworkInterfaceCommandInput} for command's `input` shape. * @see {@link AttachNetworkInterfaceCommandOutput} for command's `response` shape. * @see {@link EC2ClientResolvedConfig | config} for EC2Client's `config` shape. * * @throws {@link EC2ServiceException} *

Base exception class for all service exceptions from EC2 service.

* * * @example To attach a network interface to an instance * ```javascript * // This example attaches the specified network interface to the specified instance. * const input = { * DeviceIndex: 1, * InstanceId: "i-1234567890abcdef0", * NetworkInterfaceId: "eni-e5aa89a3" * }; * const command = new AttachNetworkInterfaceCommand(input); * const response = await client.send(command); * /* response is * { * AttachmentId: "eni-attach-66c4350a" * } * *\/ * ``` * * @public */ export declare class AttachNetworkInterfaceCommand extends AttachNetworkInterfaceCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: AttachNetworkInterfaceRequest; output: AttachNetworkInterfaceResult; }; sdk: { input: AttachNetworkInterfaceCommandInput; output: AttachNetworkInterfaceCommandOutput; }; }; }