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

Associates a target network with a Client VPN endpoint. A target network is a subnet in a VPC. You can associate multiple subnets from the same VPC with a Client VPN endpoint. You can associate only one subnet in each Availability Zone. We recommend that you associate at least two subnets to provide Availability Zone redundancy.

*

If you specified a VPC when you created the Client VPN endpoint or if you have previous subnet associations, the specified subnet must be in the same VPC. To specify a subnet that's in a different VPC, you must first modify the Client VPN endpoint (ModifyClientVpnEndpoint) and change the VPC that's associated with it.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { EC2Client, AssociateClientVpnTargetNetworkCommand } from "@aws-sdk/client-ec2"; // ES Modules import * // const { EC2Client, AssociateClientVpnTargetNetworkCommand } = 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 = { // AssociateClientVpnTargetNetworkRequest * ClientVpnEndpointId: "STRING_VALUE", // required * SubnetId: "STRING_VALUE", * ClientToken: "STRING_VALUE", * DryRun: true || false, * AvailabilityZone: "STRING_VALUE", * AvailabilityZoneId: "STRING_VALUE", * }; * const command = new AssociateClientVpnTargetNetworkCommand(input); * const response = await client.send(command); * // { // AssociateClientVpnTargetNetworkResult * // AssociationId: "STRING_VALUE", * // Status: { // AssociationStatus * // Code: "associating" || "associated" || "association-failed" || "disassociating" || "disassociated", * // Message: "STRING_VALUE", * // }, * // }; * * ``` * * @param AssociateClientVpnTargetNetworkCommandInput - {@link AssociateClientVpnTargetNetworkCommandInput} * @returns {@link AssociateClientVpnTargetNetworkCommandOutput} * @see {@link AssociateClientVpnTargetNetworkCommandInput} for command's `input` shape. * @see {@link AssociateClientVpnTargetNetworkCommandOutput} 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 AssociateClientVpnTargetNetworkCommand extends AssociateClientVpnTargetNetworkCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: AssociateClientVpnTargetNetworkRequest; output: AssociateClientVpnTargetNetworkResult; }; sdk: { input: AssociateClientVpnTargetNetworkCommandInput; output: AssociateClientVpnTargetNetworkCommandOutput; }; }; }