Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Used to failover a shard
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.
FailoverShard' | |
|
Instances
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:
$sel:clusterName: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.
FailoverShardResponse' | |
|
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.