| Copyright | (c) 2013-2023 Brendan Hay | 
|---|---|
| License | Mozilla Public License, v. 2.0. | 
| Maintainer | Brendan Hay | 
| Stability | auto-generated | 
| Portability | non-portable (GHC extensions) | 
| Safe Haskell | Safe-Inferred | 
| Language | Haskell2010 | 
Amazonka.MemoryDb.FailoverShard
Description
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.
Synopsis
- data FailoverShard = FailoverShard' {
- clusterName :: Text
 - shardName :: Text
 
 - newFailoverShard :: Text -> Text -> FailoverShard
 - failoverShard_clusterName :: Lens' FailoverShard Text
 - failoverShard_shardName :: Lens' FailoverShard Text
 - data FailoverShardResponse = FailoverShardResponse' {
- cluster :: Maybe Cluster
 - httpStatus :: Int
 
 - newFailoverShardResponse :: Int -> FailoverShardResponse
 - failoverShardResponse_cluster :: Lens' FailoverShardResponse (Maybe Cluster)
 - failoverShardResponse_httpStatus :: Lens' FailoverShardResponse Int
 
Creating a Request
data FailoverShard Source #
See: newFailoverShard smart constructor.
Constructors
| FailoverShard' | |
Fields 
  | |
Instances
Arguments
| :: Text | |
| -> Text | |
| -> FailoverShard | 
Create a value of FailoverShard with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
FailoverShard, failoverShard_clusterName - The cluster being failed over
$sel:shardName:FailoverShard', failoverShard_shardName - The name of the shard
Request Lenses
failoverShard_clusterName :: Lens' FailoverShard Text Source #
The cluster being failed over
failoverShard_shardName :: Lens' FailoverShard Text Source #
The name of the shard
Destructuring the Response
data FailoverShardResponse Source #
See: newFailoverShardResponse smart constructor.
Constructors
| FailoverShardResponse' | |
Fields 
  | |
Instances
newFailoverShardResponse Source #
Create a value of FailoverShardResponse with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:cluster:FailoverShardResponse', failoverShardResponse_cluster - The cluster being failed over
$sel:httpStatus:FailoverShardResponse', failoverShardResponse_httpStatus - The response's http status code.
Response Lenses
failoverShardResponse_cluster :: Lens' FailoverShardResponse (Maybe Cluster) Source #
The cluster being failed over
failoverShardResponse_httpStatus :: Lens' FailoverShardResponse Int Source #
The response's http status code.