import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { CreateConnectionRequest, CreateConnectionResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; /** * @public * * The input for {@link CreateConnectionCommand}. */ export interface CreateConnectionCommandInput extends CreateConnectionRequest { } /** * @public * * The output of {@link CreateConnectionCommand}. */ export interface CreateConnectionCommandOutput extends CreateConnectionResponse, __MetadataBearer { } declare const CreateConnectionCommand_base: { new (input: CreateConnectionCommandInput): import("@smithy/core/client").CommandImpl; new (input: CreateConnectionCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** *

Creates a connection between two devices. The devices can be a physical or virtual appliance that connects to a third-party appliance in a VPC, or a physical appliance that connects to another physical appliance in an on-premises network.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { NetworkManagerClient, CreateConnectionCommand } from "@aws-sdk/client-networkmanager"; // ES Modules import * // const { NetworkManagerClient, CreateConnectionCommand } = require("@aws-sdk/client-networkmanager"); // CommonJS import * // import type { NetworkManagerClientConfig } from "@aws-sdk/client-networkmanager"; * const config = {}; // type is NetworkManagerClientConfig * const client = new NetworkManagerClient(config); * const input = { // CreateConnectionRequest * GlobalNetworkId: "STRING_VALUE", // required * DeviceId: "STRING_VALUE", // required * ConnectedDeviceId: "STRING_VALUE", // required * LinkId: "STRING_VALUE", * ConnectedLinkId: "STRING_VALUE", * Description: "STRING_VALUE", * Tags: [ // TagList * { // Tag * Key: "STRING_VALUE", * Value: "STRING_VALUE", * }, * ], * }; * const command = new CreateConnectionCommand(input); * const response = await client.send(command); * // { // CreateConnectionResponse * // Connection: { // Connection * // ConnectionId: "STRING_VALUE", * // ConnectionArn: "STRING_VALUE", * // GlobalNetworkId: "STRING_VALUE", * // DeviceId: "STRING_VALUE", * // ConnectedDeviceId: "STRING_VALUE", * // LinkId: "STRING_VALUE", * // ConnectedLinkId: "STRING_VALUE", * // Description: "STRING_VALUE", * // CreatedAt: new Date("TIMESTAMP"), * // State: "PENDING" || "AVAILABLE" || "DELETING" || "UPDATING", * // Tags: [ // TagList * // { // Tag * // Key: "STRING_VALUE", * // Value: "STRING_VALUE", * // }, * // ], * // }, * // }; * * ``` * * @param CreateConnectionCommandInput - {@link CreateConnectionCommandInput} * @returns {@link CreateConnectionCommandOutput} * @see {@link CreateConnectionCommandInput} for command's `input` shape. * @see {@link CreateConnectionCommandOutput} for command's `response` shape. * @see {@link NetworkManagerClientResolvedConfig | config} for NetworkManagerClient's `config` shape. * * @throws {@link AccessDeniedException} (client fault) *

You do not have sufficient access to perform this action.

* * @throws {@link ConflictException} (client fault) *

There was a conflict processing the request. Updating or deleting the resource can * cause an inconsistent state.

* * @throws {@link InternalServerException} (server fault) *

The request has failed due to an internal error.

* * @throws {@link ServiceQuotaExceededException} (client fault) *

A service limit was exceeded.

* * @throws {@link ThrottlingException} (client fault) *

The request was denied due to request throttling.

* * @throws {@link ValidationException} (client fault) *

The input fails to satisfy the constraints.

* * @throws {@link NetworkManagerServiceException} *

Base exception class for all service exceptions from NetworkManager service.

* * * @public */ export declare class CreateConnectionCommand extends CreateConnectionCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: CreateConnectionRequest; output: CreateConnectionResponse; }; sdk: { input: CreateConnectionCommandInput; output: CreateConnectionCommandOutput; }; }; }