Skip to content

stop_failback async

stop_failback(
    recovery_instance_id: RecoveryInstanceID,
    *,
    config_overrides: Optional[AsyncdrsClientConfig] = None,
) -> None

Stops the failback process for a specified Recovery Instance. This changes the Failback State of the Recovery Instance back to FAILBACK_NOT_STARTED.

Parameters:

  • recovery_instance_id (RecoveryInstanceID) –

    The ID of the Recovery Instance we want to stop failback for.

Raises:

Source code in docs_src/capo_drs/_services/async_drs.py
async def stop_failback(
    self,
    recovery_instance_id: "capo_drs.types.recovery_instance_id.RecoveryInstanceID",
    *,
    config_overrides: Optional[AsyncdrsClientConfig] = None,
) -> None:
    """<p>Stops the failback process for a specified Recovery Instance. This changes the Failback State of the Recovery Instance back to FAILBACK_NOT_STARTED.</p>

    Args:
        recovery_instance_id: <p>The ID of the Recovery Instance we want to stop failback for.</p>

    Raises:
        capo_drs.errors.internal_server_exception.InternalServerException: <p>The request processing has failed because of an unknown error, exception or failure.</p>
        capo_drs.errors.resource_not_found_exception.ResourceNotFoundException: <p>The resource for this operation was not found.</p>
        capo_drs.errors.throttling_exception.ThrottlingException: <p>The request was denied due to request throttling.</p>
        capo_drs.errors.uninitialized_account_exception.UninitializedAccountException: <p>The account performing the request has not been initialized.</p>
        capo_drs.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_drs.types.stop_failback_request.StopFailbackRequest]",
    ) -> AsyncOperationResponse[None]:
        import capo_drs._operations.elastic_disaster_recovery_service.stop_failback

        (
            output,
            http_response,
        ) = await capo_drs._operations.elastic_disaster_recovery_service.stop_failback.async_stop_failback(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("StopFailback")
    )
    input_: capo_drs.types.stop_failback_request.StopFailbackRequest = {
        "recovery_instance_id": recovery_instance_id
    }

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