Smaws_Client_Neptune.FailoverGlobalClusterInitiates the failover process for a Neptune global database.
A failover for a Neptune global database promotes one of secondary read-only DB clusters to be the primary DB cluster and demotes the primary DB cluster to being a secondary (read-only) DB cluster. In other words, the role of the current primary DB cluster and the selected target secondary DB cluster are switched. The selected secondary DB cluster assumes full read/write capabilities for the Neptune global database.
This action applies only to Neptune global databases. This action is only intended for use on healthy Neptune global databases with healthy Neptune DB clusters and no region-wide outages, to test disaster recovery scenarios or to reconfigure the global database topology.
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 ] ->
stringval 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.resultval request_with_metadata :
'http_type Smaws_Lib.Context.t ->
Types.failover_global_cluster_message ->
(Types.failover_global_cluster_result Smaws_Lib.Response.t,
[> 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 ]
* Smaws_Lib.Response.metadata)
Stdlib.result