create_outbound_connection
async
¶
create_outbound_connection(
local_domain_info: DomainInformationContainer,
remote_domain_info: DomainInformationContainer,
connection_alias: ConnectionAlias,
*,
config_overrides: Optional[AsyncOpenSearchClientConfig] = None,
connection_mode: Optional[ConnectionMode] = None,
connection_properties: Optional[ConnectionProperties] = None,
) -> CreateOutboundConnectionResponse
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.
Parameters:
-
local_domain_info(DomainInformationContainer) –Name and Region of the source (local) domain.
-
remote_domain_info(DomainInformationContainer) –Name and Region of the destination (remote) domain.
-
connection_alias(ConnectionAlias) –Name of the connection.
-
connection_mode(Optional[ConnectionMode], default:None) –The connection mode.
-
connection_properties(Optional[ConnectionProperties], default:None) –The
ConnectionPropertiesfor the outbound connection.
Raises:
-
DisabledOperationException–An error occured because the client wanted to access an unsupported operation.
-
InternalException–Request processing failed because of an unknown error, exception, or internal failure.
-
LimitExceededException–An exception for trying to create more than the allowed number of resources or sub-resources.
-
ResourceAlreadyExistsException–An exception for creating a resource that already exists.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_opensearch/_services/async_open_search.py
1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 | |