Deletes the specified interconnect.
Intended for use by Direct Connect Partners only.
Parameters:
Raises:
Source code in docs_src/capo_direct_connect/_services/async_direct_connect.py
| async def delete_interconnect(
self,
interconnect_id: "capo_direct_connect.types.interconnect_id.InterconnectId",
*,
config_overrides: Optional[AsyncDirectConnectClientConfig] = None,
) -> "capo_direct_connect.types.delete_interconnect_response.DeleteInterconnectResponse":
"""<p>Deletes the specified interconnect.</p> <note> <p>Intended for use by Direct Connect Partners only.</p> </note>
Args:
interconnect_id: <p>The ID of the interconnect.</p>
Raises:
capo_direct_connect.errors.direct_connect_client_exception.DirectConnectClientException: <p>One or more parameters are not valid.</p>
capo_direct_connect.errors.direct_connect_server_exception.DirectConnectServerException: <p>A server-side error occurred.</p>
capo_direct_connect.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
async def _handler(
req: "AsyncOperationRequest[capo_direct_connect.types.delete_interconnect_request.DeleteInterconnectRequest]",
) -> AsyncOperationResponse[
"capo_direct_connect.types.delete_interconnect_response.DeleteInterconnectResponse"
]:
import capo_direct_connect._operations.overture_service.delete_interconnect
(
output,
http_response,
) = await capo_direct_connect._operations.overture_service.delete_interconnect.async_delete_interconnect(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("DeleteInterconnect")
)
input_: capo_direct_connect.types.delete_interconnect_request.DeleteInterconnectRequest = {
"interconnect_id": interconnect_id
}
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output
|