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 { AttachClassicLinkVpcRequest, AttachClassicLinkVpcResult } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link AttachClassicLinkVpcCommand}. */ export interface AttachClassicLinkVpcCommandInput extends AttachClassicLinkVpcRequest { } /** * @public * * The output of {@link AttachClassicLinkVpcCommand}. */ export interface AttachClassicLinkVpcCommandOutput extends AttachClassicLinkVpcResult, __MetadataBearer { } declare const AttachClassicLinkVpcCommand_base: { new (input: AttachClassicLinkVpcCommandInput): import("@smithy/smithy-client").CommandImpl; new (input: AttachClassicLinkVpcCommandInput): import("@smithy/smithy-client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** * *

This action is deprecated.

*
*

Links an EC2-Classic instance to a ClassicLink-enabled VPC through one or more of the VPC * security groups. You cannot link an EC2-Classic instance to more than one VPC at a time. You * can only link an instance that's in the running state. An instance is * automatically unlinked from a VPC when it's stopped - you can link it to the VPC again when * you restart it.

*

After you've linked an instance, you cannot change the VPC security groups that are associated with it. To change the security groups, you must first unlink the instance, and then link it again.

*

Linking your instance to a VPC is sometimes referred to as attaching your instance.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { EC2Client, AttachClassicLinkVpcCommand } from "@aws-sdk/client-ec2"; // ES Modules import * // const { EC2Client, AttachClassicLinkVpcCommand } = 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 = { // AttachClassicLinkVpcRequest * DryRun: true || false, * InstanceId: "STRING_VALUE", // required * VpcId: "STRING_VALUE", // required * Groups: [ // GroupIdStringList // required * "STRING_VALUE", * ], * }; * const command = new AttachClassicLinkVpcCommand(input); * const response = await client.send(command); * // { // AttachClassicLinkVpcResult * // Return: true || false, * // }; * * ``` * * @param AttachClassicLinkVpcCommandInput - {@link AttachClassicLinkVpcCommandInput} * @returns {@link AttachClassicLinkVpcCommandOutput} * @see {@link AttachClassicLinkVpcCommandInput} for command's `input` shape. * @see {@link AttachClassicLinkVpcCommandOutput} 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.

* * * @public */ export declare class AttachClassicLinkVpcCommand extends AttachClassicLinkVpcCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: AttachClassicLinkVpcRequest; output: AttachClassicLinkVpcResult; }; sdk: { input: AttachClassicLinkVpcCommandInput; output: AttachClassicLinkVpcCommandOutput; }; }; }