Allows the remote Amazon OpenSearch Service domain owner to reject an inbound cross-cluster connection request.
Parameters:
-
connection_id
(ConnectionId)
–
The unique identifier of the inbound connection to reject.
Raises:
Source code in docs_src/capo_opensearch/_services/async_open_search.py
| async def reject_inbound_connection(
self,
connection_id: "capo_opensearch.types.connection_id.ConnectionId",
*,
config_overrides: Optional[AsyncOpenSearchClientConfig] = None,
) -> "capo_opensearch.types.reject_inbound_connection_response.RejectInboundConnectionResponse":
"""<p>Allows the remote Amazon OpenSearch Service domain owner to reject an inbound cross-cluster connection request.</p>
Args:
connection_id: <p>The unique identifier of the inbound connection to reject.</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.resource_not_found_exception.ResourceNotFoundException: <p>An exception for accessing or deleting a resource that doesn't exist.</p>
capo_opensearch.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
async def _handler(
req: "AsyncOperationRequest[capo_opensearch.types.reject_inbound_connection_request.RejectInboundConnectionRequest]",
) -> AsyncOperationResponse[
"capo_opensearch.types.reject_inbound_connection_response.RejectInboundConnectionResponse"
]:
import capo_opensearch._operations.amazon_open_search_service.reject_inbound_connection
(
output,
http_response,
) = await capo_opensearch._operations.amazon_open_search_service.reject_inbound_connection.async_reject_inbound_connection(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("RejectInboundConnection")
)
input_: capo_opensearch.types.reject_inbound_connection_request.RejectInboundConnectionRequest = {
"connection_id": connection_id
}
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output
|