Lists all the outbound cross-cluster connections for a local (source) Amazon OpenSearch Service domain. For more information, see Cross-cluster search for Amazon OpenSearch Service.
Parameters:
-
filters
(Optional[FilterList], default:
None
)
–
List of filter names and values that you can use for requests.
-
max_results
(Optional[MaxResults], default:
None
)
–
An optional parameter that specifies the maximum number of results to return. You can use nextToken to get the next page of results.
-
next_token
(Optional[NextToken], default:
None
)
–
If your initial DescribeOutboundConnections operation returns a nextToken, you can include the returned nextToken in subsequent DescribeOutboundConnections operations, which returns results in the next page.
Raises:
Source code in docs_src/capo_opensearch/_services/async_open_search.py
| async def describe_outbound_connections(
self,
*,
config_overrides: Optional[AsyncOpenSearchClientConfig] = None,
filters: Optional["capo_opensearch.types.filter_list.FilterList"] = None,
max_results: Optional["capo_opensearch.types.max_results.MaxResults"] = None,
next_token: Optional["capo_opensearch.types.next_token.NextToken"] = None,
) -> "capo_opensearch.types.describe_outbound_connections_response.DescribeOutboundConnectionsResponse":
"""<p>Lists all the outbound cross-cluster connections for a local (source) Amazon OpenSearch Service domain. For more information, see <a href="https://docs.aws.amazon.com/opensearch-service/latest/developerguide/cross-cluster-search.html">Cross-cluster search for Amazon OpenSearch Service</a>.</p>
Args:
filters: <p>List of filter names and values that you can use for requests.</p>
max_results: <p>An optional parameter that specifies the maximum number of results to return. You can use <code>nextToken</code> to get the next page of results.</p>
next_token: <p>If your initial <code>DescribeOutboundConnections</code> operation returns a <code>nextToken</code>, you can include the returned <code>nextToken</code> in subsequent <code>DescribeOutboundConnections</code> operations, which returns results in the next page.</p>
Raises:
capo_opensearch.errors.disabled_operation_exception.DisabledOperationException: <p>An error occured because the client wanted to access an unsupported operation.</p>
capo_opensearch.errors.invalid_pagination_token_exception.InvalidPaginationTokenException: <p>Request processing failed because you provided an invalid pagination token.</p>
capo_opensearch.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
async def _handler(
req: "AsyncOperationRequest[capo_opensearch.types.describe_outbound_connections_request.DescribeOutboundConnectionsRequest]",
) -> AsyncOperationResponse[
"capo_opensearch.types.describe_outbound_connections_response.DescribeOutboundConnectionsResponse"
]:
import capo_opensearch._operations.amazon_open_search_service.describe_outbound_connections
(
output,
http_response,
) = await capo_opensearch._operations.amazon_open_search_service.describe_outbound_connections.async_describe_outbound_connections(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("DescribeOutboundConnections")
)
input_: capo_opensearch.types.describe_outbound_connections_request.DescribeOutboundConnectionsRequest = {}
if filters is not None:
input_["filters"] = filters
if max_results is not None:
input_["max_results"] = max_results
if next_token is not None:
input_["next_token"] = next_token
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output
|