Skip to content

delete_outbound_cross_cluster_search_connection async

delete_outbound_cross_cluster_search_connection(
    cross_cluster_search_connection_id: CrossClusterSearchConnectionId,
    *,
    config_overrides: Optional[AsyncElasticsearchServiceClientConfig] = None,
) -> DeleteOutboundCrossClusterSearchConnectionResponse

Allows the source domain owner to delete an existing outbound cross-cluster search connection.

Parameters:

Raises:

  • DisabledOperationException –

    An error occured because the client wanted to access a not supported operation. Gives http status code of 409.

  • ResourceNotFoundException –

    An exception for accessing or deleting a resource that does not exist. Gives http status code of 400.

  • UnknownServiceError –

    The service returned an error code this client does not model.

Source code in docs_src/capo_elasticsearch_service/_services/async_elasticsearch_service.py
async def delete_outbound_cross_cluster_search_connection(
    self,
    cross_cluster_search_connection_id: "capo_elasticsearch_service.types.cross_cluster_search_connection_id.CrossClusterSearchConnectionId",
    *,
    config_overrides: Optional[AsyncElasticsearchServiceClientConfig] = None,
) -> "capo_elasticsearch_service.types.delete_outbound_cross_cluster_search_connection_response.DeleteOutboundCrossClusterSearchConnectionResponse":
    """<p>Allows the source domain owner to delete an existing outbound cross-cluster search connection.</p>

    Args:
        cross_cluster_search_connection_id: <p>The id of the outbound connection that you want to permanently delete.</p>

    Raises:
        capo_elasticsearch_service.errors.disabled_operation_exception.DisabledOperationException: <p>An error occured because the client wanted to access a not supported operation. Gives http status code of 409.</p>
        capo_elasticsearch_service.errors.resource_not_found_exception.ResourceNotFoundException: <p>An exception for accessing or deleting a resource that does not exist. Gives http status code of 400.</p>
        capo_elasticsearch_service.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_elasticsearch_service.types.delete_outbound_cross_cluster_search_connection_request.DeleteOutboundCrossClusterSearchConnectionRequest]",
    ) -> AsyncOperationResponse[
        "capo_elasticsearch_service.types.delete_outbound_cross_cluster_search_connection_response.DeleteOutboundCrossClusterSearchConnectionResponse"
    ]:
        import capo_elasticsearch_service._operations.amazon_elasticsearch_service2015.delete_outbound_cross_cluster_search_connection

        (
            output,
            http_response,
        ) = await capo_elasticsearch_service._operations.amazon_elasticsearch_service2015.delete_outbound_cross_cluster_search_connection.async_delete_outbound_cross_cluster_search_connection(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides,
        OperationLogging("DeleteOutboundCrossClusterSearchConnection"),
    )
    input_: capo_elasticsearch_service.types.delete_outbound_cross_cluster_search_connection_request.DeleteOutboundCrossClusterSearchConnectionRequest = {
        "cross_cluster_search_connection_id": cross_cluster_search_connection_id
    }

    response = await aexecute_pipeline(
        AsyncOperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    await response.response.aclose()
    return response.output