Module Smaws_Client_MemoryDB.FailoverShard

Used to failover a shard. This API is designed for testing the behavior of your application in case of MemoryDB failover. It is not designed to be used as a production-level tool for initiating a failover to overcome a problem you may have with the cluster. Moreover, in certain conditions such as large scale operational events, Amazon may block this API.

val error_to_string : [ Smaws_Lib.Protocols.AwsJson.error | `APICallRateForCustomerExceededFault of Types.api_call_rate_for_customer_exceeded_fault | `ClusterNotFoundFault of Types.cluster_not_found_fault | `InvalidClusterStateFault of Types.invalid_cluster_state_fault | `InvalidKMSKeyFault of Types.invalid_kms_key_fault | `InvalidParameterCombinationException of Types.invalid_parameter_combination_exception | `InvalidParameterValueException of Types.invalid_parameter_value_exception | `ShardNotFoundFault of Types.shard_not_found_fault | `TestFailoverNotAvailableFault of Types.test_failover_not_available_fault ] -> string
val request : 'http_type Smaws_Lib.Context.t -> Types.failover_shard_request -> (Types.failover_shard_response, [> Smaws_Lib.Protocols.AwsJson.error | `APICallRateForCustomerExceededFault of Types.api_call_rate_for_customer_exceeded_fault | `ClusterNotFoundFault of Types.cluster_not_found_fault | `InvalidClusterStateFault of Types.invalid_cluster_state_fault | `InvalidKMSKeyFault of Types.invalid_kms_key_fault | `InvalidParameterCombinationException of Types.invalid_parameter_combination_exception | `InvalidParameterValueException of Types.invalid_parameter_value_exception | `ShardNotFoundFault of Types.shard_not_found_fault | `TestFailoverNotAvailableFault of Types.test_failover_not_available_fault ]) Stdlib.result
val request_with_metadata : 'http_type Smaws_Lib.Context.t -> Types.failover_shard_request -> (Types.failover_shard_response Smaws_Lib.Response.t, [> Smaws_Lib.Protocols.AwsJson.error | `APICallRateForCustomerExceededFault of Types.api_call_rate_for_customer_exceeded_fault | `ClusterNotFoundFault of Types.cluster_not_found_fault | `InvalidClusterStateFault of Types.invalid_cluster_state_fault | `InvalidKMSKeyFault of Types.invalid_kms_key_fault | `InvalidParameterCombinationException of Types.invalid_parameter_combination_exception | `InvalidParameterValueException of Types.invalid_parameter_value_exception | `ShardNotFoundFault of Types.shard_not_found_fault | `TestFailoverNotAvailableFault of Types.test_failover_not_available_fault ] * Smaws_Lib.Response.metadata) Stdlib.result