Module Smaws_Client_DocDB.FailoverDBCluster

Forces a failover for a cluster.

A failover for a cluster promotes one of the Amazon DocumentDB replicas (read-only instances) in the cluster to be the primary instance (the cluster writer).

If the primary instance fails, Amazon DocumentDB automatically fails over to an Amazon DocumentDB replica, if one exists. You can force a failover when you want to simulate a failure of a primary instance for testing.

val error_to_string : [ Smaws_Lib.Protocols.AwsQuery.error | `DBClusterNotFoundFault of Types.db_cluster_not_found_fault | `InvalidDBClusterStateFault of Types.invalid_db_cluster_state_fault | `InvalidDBInstanceStateFault of Types.invalid_db_instance_state_fault ] -> string
val request : 'http_type Smaws_Lib.Context.t -> Types.failover_db_cluster_message -> (Types.failover_db_cluster_result, [> Smaws_Lib.Protocols.AwsQuery.error | `DBClusterNotFoundFault of Types.db_cluster_not_found_fault | `InvalidDBClusterStateFault of Types.invalid_db_cluster_state_fault | `InvalidDBInstanceStateFault of Types.invalid_db_instance_state_fault ]) Stdlib.result