Skip to content

stop_bgp_failover_test async

stop_bgp_failover_test(
    virtual_interface_id: VirtualInterfaceId,
    *,
    config_overrides: Optional[AsyncDirectConnectClientConfig] = None,
) -> StopBgpFailoverTestResponse

Stops the virtual interface failover test.

Parameters:

  • virtual_interface_id (VirtualInterfaceId) –

    The ID of the virtual interface you no longer want to test.

Raises:

Source code in docs_src/capo_direct_connect/_services/async_direct_connect.py
async def stop_bgp_failover_test(
    self,
    virtual_interface_id: "capo_direct_connect.types.virtual_interface_id.VirtualInterfaceId",
    *,
    config_overrides: Optional[AsyncDirectConnectClientConfig] = None,
) -> "capo_direct_connect.types.stop_bgp_failover_test_response.StopBgpFailoverTestResponse":
    """<p>Stops the virtual interface failover test.</p>

    Args:
        virtual_interface_id: <p>The ID of the virtual interface you no longer want to test.</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.stop_bgp_failover_test_request.StopBgpFailoverTestRequest]",
    ) -> AsyncOperationResponse[
        "capo_direct_connect.types.stop_bgp_failover_test_response.StopBgpFailoverTestResponse"
    ]:
        import capo_direct_connect._operations.overture_service.stop_bgp_failover_test

        (
            output,
            http_response,
        ) = await capo_direct_connect._operations.overture_service.stop_bgp_failover_test.async_stop_bgp_failover_test(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("StopBgpFailoverTest")
    )
    input_: capo_direct_connect.types.stop_bgp_failover_test_request.StopBgpFailoverTestRequest = {
        "virtual_interface_id": virtual_interface_id
    }

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