选择您的 Cookie 首选项

我们使用必要 Cookie 和类似工具提供我们的网站和服务。我们使用性能 Cookie 收集匿名统计数据,以便我们可以了解客户如何使用我们的网站并进行改进。必要 Cookie 无法停用,但您可以单击“自定义”或“拒绝”来拒绝性能 Cookie。

如果您同意,AWS 和经批准的第三方还将使用 Cookie 提供有用的网站功能、记住您的首选项并显示相关内容,包括相关广告。要接受或拒绝所有非必要 Cookie,请单击“接受”或“拒绝”。要做出更详细的选择,请单击“自定义”。

CreateOutboundConnection - Amazon OpenSearch Service
此页面尚未翻译为您的语言。 请求翻译

CreateOutboundConnection

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.

Request Syntax

POST /2021-01-01/opensearch/cc/outboundConnection HTTP/1.1 Content-type: application/json { "ConnectionAlias": "string", "ConnectionMode": "string", "ConnectionProperties": { "CrossClusterSearch": { "SkipUnavailable": "string" }, "Endpoint": "string" }, "LocalDomainInfo": { "AWSDomainInformation": { "DomainName": "string", "OwnerId": "string", "Region": "string" } }, "RemoteDomainInfo": { "AWSDomainInformation": { "DomainName": "string", "OwnerId": "string", "Region": "string" } } }

URI Request Parameters

The request does not use any URI parameters.

Request Body

The request accepts the following data in JSON format.

ConnectionAlias

Name of the connection.

Type: String

Length Constraints: Minimum length of 2. Maximum length of 100.

Pattern: [a-zA-Z][a-zA-Z0-9\-\_]+

Required: Yes

ConnectionMode

The connection mode.

Type: String

Valid Values: DIRECT | VPC_ENDPOINT

Required: No

ConnectionProperties

The ConnectionProperties for the outbound connection.

Type: ConnectionProperties object

Required: No

LocalDomainInfo

Name and Region of the source (local) domain.

Type: DomainInformationContainer object

Required: Yes

RemoteDomainInfo

Name and Region of the destination (remote) domain.

Type: DomainInformationContainer object

Required: Yes

Response Syntax

HTTP/1.1 200 Content-type: application/json { "ConnectionAlias": "string", "ConnectionId": "string", "ConnectionMode": "string", "ConnectionProperties": { "CrossClusterSearch": { "SkipUnavailable": "string" }, "Endpoint": "string" }, "ConnectionStatus": { "Message": "string", "StatusCode": "string" }, "LocalDomainInfo": { "AWSDomainInformation": { "DomainName": "string", "OwnerId": "string", "Region": "string" } }, "RemoteDomainInfo": { "AWSDomainInformation": { "DomainName": "string", "OwnerId": "string", "Region": "string" } } }

Response Elements

If the action is successful, the service sends back an HTTP 200 response.

The following data is returned in JSON format by the service.

ConnectionAlias

Name of the connection.

Type: String

Length Constraints: Minimum length of 2. Maximum length of 100.

Pattern: [a-zA-Z][a-zA-Z0-9\-\_]+

ConnectionId

The unique identifier for the created outbound connection, which is used for subsequent operations on the connection.

Type: String

Length Constraints: Minimum length of 10. Maximum length of 256.

Pattern: [a-z][a-z0-9\-]+

ConnectionMode

The connection mode.

Type: String

Valid Values: DIRECT | VPC_ENDPOINT

ConnectionProperties

The ConnectionProperties for the newly created connection.

Type: ConnectionProperties object

ConnectionStatus

The status of the connection.

Type: OutboundConnectionStatus object

LocalDomainInfo

Information about the source (local) domain.

Type: DomainInformationContainer object

RemoteDomainInfo

Information about the destination (remote) domain.

Type: DomainInformationContainer object

Errors

For information about the errors that are common to all actions, see Common Errors.

DisabledOperationException

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

HTTP Status Code: 409

InternalException

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

HTTP Status Code: 500

LimitExceededException

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

HTTP Status Code: 409

ResourceAlreadyExistsException

An exception for creating a resource that already exists.

HTTP Status Code: 409

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following:

下一主题:

CreatePackage

上一主题:

CreateDomain
隐私网站条款Cookie 首选项
© 2025, Amazon Web Services, Inc. 或其附属公司。保留所有权利。