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/open_search.py
| def reject_inbound_connection(
self,
connection_id: "capo_opensearch.types.connection_id.ConnectionId",
*,
config_overrides: Optional[OpenSearchClientConfig] = 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.
"""
def _handler(
req: "OperationRequest[capo_opensearch.types.reject_inbound_connection_request.RejectInboundConnectionRequest]",
) -> OperationResponse[
"capo_opensearch.types.reject_inbound_connection_response.RejectInboundConnectionResponse"
]:
import capo_opensearch._operations.amazon_open_search_service.reject_inbound_connection
output, http_response = (
capo_opensearch._operations.amazon_open_search_service.reject_inbound_connection.reject_inbound_connection(
req.options, req.input
)
)
return OperationResponse(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 = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|