Module Smaws_Client_Neptune.FailoverDBCluster

Forces a failover for a DB cluster.

A failover for a DB cluster promotes one of the Read Replicas (read-only instances) in the DB cluster to be the primary instance (the cluster writer).

Amazon Neptune will automatically fail over to a Read Replica, if one exists, when the primary instance fails. You can force a failover when you want to simulate a failure of a primary instance for testing. Because each instance in a DB cluster has its own endpoint address, you will need to clean up and re-establish any existing connections that use those endpoint addresses when the failover is complete.

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