import { Command as $Command } from "@smithy/core/client"; import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { CreateOutboundConnectionRequest, CreateOutboundConnectionResponse } from "../models/models_0"; import type { OpenSearchClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../OpenSearchClient"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link CreateOutboundConnectionCommand}. */ export interface CreateOutboundConnectionCommandInput extends CreateOutboundConnectionRequest { } /** * @public * * The output of {@link CreateOutboundConnectionCommand}. */ export interface CreateOutboundConnectionCommandOutput extends CreateOutboundConnectionResponse, __MetadataBearer { } declare const CreateOutboundConnectionCommand_base: { new (input: CreateOutboundConnectionCommandInput): import("@smithy/core/client").CommandImpl; new (input: CreateOutboundConnectionCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): { [x: string]: unknown; }; }; /** *

Creates a new cross-cluster search connection from a source Amazon OpenSearch Service domain * to a destination domain. For more information, see Cross-cluster search * for Amazon OpenSearch Service.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { OpenSearchClient, CreateOutboundConnectionCommand } from "@aws-sdk/client-opensearch"; // ES Modules import * // const { OpenSearchClient, CreateOutboundConnectionCommand } = require("@aws-sdk/client-opensearch"); // CommonJS import * // import type { OpenSearchClientConfig } from "@aws-sdk/client-opensearch"; * const config = {}; // type is OpenSearchClientConfig * const client = new OpenSearchClient(config); * const input = { // CreateOutboundConnectionRequest * LocalDomainInfo: { // DomainInformationContainer * AWSDomainInformation: { // AWSDomainInformation * OwnerId: "STRING_VALUE", * DomainName: "STRING_VALUE", // required * Region: "STRING_VALUE", * }, * }, * RemoteDomainInfo: { * AWSDomainInformation: { * OwnerId: "STRING_VALUE", * DomainName: "STRING_VALUE", // required * Region: "STRING_VALUE", * }, * }, * ConnectionAlias: "STRING_VALUE", // required * ConnectionMode: "DIRECT" || "VPC_ENDPOINT", * ConnectionProperties: { // ConnectionProperties * Endpoint: "STRING_VALUE", * CrossClusterSearch: { // CrossClusterSearchConnectionProperties * SkipUnavailable: "ENABLED" || "DISABLED", * }, * }, * }; * const command = new CreateOutboundConnectionCommand(input); * const response = await client.send(command); * // { // CreateOutboundConnectionResponse * // LocalDomainInfo: { // DomainInformationContainer * // AWSDomainInformation: { // AWSDomainInformation * // OwnerId: "STRING_VALUE", * // DomainName: "STRING_VALUE", // required * // Region: "STRING_VALUE", * // }, * // }, * // RemoteDomainInfo: { * // AWSDomainInformation: { * // OwnerId: "STRING_VALUE", * // DomainName: "STRING_VALUE", // required * // Region: "STRING_VALUE", * // }, * // }, * // ConnectionAlias: "STRING_VALUE", * // ConnectionStatus: { // OutboundConnectionStatus * // StatusCode: "VALIDATING" || "VALIDATION_FAILED" || "PENDING_ACCEPTANCE" || "APPROVED" || "PROVISIONING" || "ACTIVE" || "REJECTING" || "REJECTED" || "DELETING" || "DELETED", * // Message: "STRING_VALUE", * // }, * // ConnectionId: "STRING_VALUE", * // ConnectionMode: "DIRECT" || "VPC_ENDPOINT", * // ConnectionProperties: { // ConnectionProperties * // Endpoint: "STRING_VALUE", * // CrossClusterSearch: { // CrossClusterSearchConnectionProperties * // SkipUnavailable: "ENABLED" || "DISABLED", * // }, * // }, * // }; * * ``` * * @param CreateOutboundConnectionCommandInput - {@link CreateOutboundConnectionCommandInput} * @returns {@link CreateOutboundConnectionCommandOutput} * @see {@link CreateOutboundConnectionCommandInput} for command's `input` shape. * @see {@link CreateOutboundConnectionCommandOutput} for command's `response` shape. * @see {@link OpenSearchClientResolvedConfig | config} for OpenSearchClient's `config` shape. * * @throws {@link DisabledOperationException} (client fault) *

An error occured because the client wanted to access an unsupported operation.

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

Request processing failed because of an unknown error, exception, or internal failure.

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

An exception for trying to create more than the allowed number of resources or sub-resources.

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

An exception for creating a resource that already exists.

* * @throws {@link OpenSearchServiceException} *

Base exception class for all service exceptions from OpenSearch service.

* * * @public */ export declare class CreateOutboundConnectionCommand extends CreateOutboundConnectionCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: CreateOutboundConnectionRequest; output: CreateOutboundConnectionResponse; }; sdk: { input: CreateOutboundConnectionCommandInput; output: CreateOutboundConnectionCommandOutput; }; }; }