Module Values.SwitchoverGlobalClusterResultSource

Switches over the specified secondary DB cluster to be the new primary DB cluster in the global database cluster. Switchover operations were previously called "managed planned failovers." Promotes the specified secondary cluster to assume full read/write capabilities and demotes the current primary cluster to a secondary (read-only) cluster, maintaining the original replication topology. All secondary clusters are synchronized with the primary at the beginning of the process so the new primary continues operations for the global database without losing any data. Your database is unavailable for a short time while the primary and selected secondary clusters are assuming their new roles. This operation is intended for controlled environments, for operations such as "regional rotation" or to fall back to the original primary after a global database failover.

Sourcetype switchoverGlobalClusterResult = {
  1. globalCluster : GlobalCluster.t option;
}
Sourceand responseMetaData = unit
Sourceand t = {
  1. switchoverGlobalClusterResult : switchoverGlobalClusterResult;
  2. responseMetaData : responseMetaData;
}
Sourcetype error = [
  1. | `DBClusterNotFoundFault of DBClusterNotFoundFault.t
  2. | `GlobalClusterNotFoundFault of GlobalClusterNotFoundFault.t
  3. | `InvalidDBClusterStateFault of InvalidDBClusterStateFault.t
  4. | `InvalidGlobalClusterStateFault of InvalidGlobalClusterStateFault.t
  5. | `Unknown_operation_error of string * string option
]
Sourceval context_ : string
Sourceval make : ?globalCluster:??? -> unit -> t
Sourceval error_of_json : string -> Yojson.Safe.t -> [> `DBClusterNotFoundFault of unit | `GlobalClusterNotFoundFault of unit | `InvalidDBClusterStateFault of unit | `InvalidGlobalClusterStateFault of unit | `Unknown_operation_error of string * string option ]
Sourceval error_of_xml : string -> Awso.Xml.t -> [> `DBClusterNotFoundFault of unit | `GlobalClusterNotFoundFault of unit | `InvalidDBClusterStateFault of unit | `InvalidGlobalClusterStateFault of unit | `Unknown_operation_error of string * string option ]
Sourceval error_to_json : error -> Yojson.Safe.t
Sourceval to_value : t -> [> `Structure of (string * [> `Structure of (string * [> `Structure of (string * [> `Boolean of BooleanOptional.t | `List of [> `Structure of (string * [> `Boolean of Boolean.t | `List of [> `String of String_.t ] list | `String of String_.t ]) list ] list | `String of GlobalClusterIdentifier.t | `Structure of (string * [> `Boolean of Boolean.t | `Enum of string | `String of String_.t ]) list ]) list ]) list ]) list ]
Sourceval to_query : t -> Awso.Client.Query.t
Sourceval of_xml : Awso.Xml.t -> t
Sourceval of_string : string -> t
Sourceval of_json : Yojson.Safe.t -> t
Sourceval to_json : t -> Yojson.Safe.t