Module Smaws_Client_RDS.FailoverGlobalCluster

Promotes the specified secondary DB cluster to be the primary DB cluster in the global database cluster to fail over or switch over a global database. Switchover operations were previously called "managed planned failovers."

Although this operation can be used either to fail over or to switch over a global database cluster, its intended use is for global database failover. To switch over a global database cluster, we recommend that you use the SwitchoverGlobalCluster operation instead.

How you use this operation depends on whether you are failing over or switching over your global database cluster:

About failing over and switching over

While failing over and switching over a global database cluster both change the primary DB cluster, you use these operations for different reasons:

val error_to_string : [ Smaws_Lib.Protocols.AwsQuery.error | `DBClusterNotFoundFault of Types.db_cluster_not_found_fault | `GlobalClusterNotFoundFault of Types.global_cluster_not_found_fault | `InvalidDBClusterStateFault of Types.invalid_db_cluster_state_fault | `InvalidGlobalClusterStateFault of Types.invalid_global_cluster_state_fault ] -> string
val request : 'http_type Smaws_Lib.Context.t -> Types.failover_global_cluster_message -> (Types.failover_global_cluster_result, [> Smaws_Lib.Protocols.AwsQuery.error | `DBClusterNotFoundFault of Types.db_cluster_not_found_fault | `GlobalClusterNotFoundFault of Types.global_cluster_not_found_fault | `InvalidDBClusterStateFault of Types.invalid_db_cluster_state_fault | `InvalidGlobalClusterStateFault of Types.invalid_global_cluster_state_fault ]) Stdlib.result