failover_shard
¶
failover_shard(
cluster_name: String,
shard_name: String,
*,
config_overrides: Optional[MemoryDBClientConfig] = None,
) -> FailoverShardResponse
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.
Parameters:
Raises:
-
APICallRateForCustomerExceededFault–The customer has exceeded the maximum number of API requests allowed per time period.
-
ClusterNotFoundFault–The specified cluster does not exist.
-
InvalidClusterStateFault–The cluster is not in a valid state for the requested operation.
-
InvalidKMSKeyFault–The specified KMS key is not valid or accessible.
-
InvalidParameterCombinationException–The specified parameter combination is not valid.
-
InvalidParameterValueException–The specified parameter value is not valid.
-
ShardNotFoundFault–The specified shard does not exist.
-
TestFailoverNotAvailableFault–Test failover is not available for this cluster configuration.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_memorydb/_services/memory_db.py
3031 3032 3033 3034 3035 3036 3037 3038 3039 3040 3041 3042 3043 3044 3045 3046 3047 3048 3049 3050 3051 3052 3053 3054 3055 3056 3057 3058 3059 3060 3061 3062 3063 3064 3065 3066 3067 3068 3069 3070 3071 3072 3073 3074 3075 3076 3077 3078 3079 3080 3081 3082 3083 3084 3085 3086 3087 3088 3089 3090 3091 3092 3093 3094 3095 | |