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 |
Dynamically decreases the number of replicas in a Redis (cluster mode disabled) replication group or the number of replica nodes in one or more node groups (shards) of a Redis (cluster mode enabled) replication group. This operation is performed with no cluster down time.
Synopsis
- data DecreaseReplicaCount = DecreaseReplicaCount' {}
- newDecreaseReplicaCount :: Text -> Bool -> DecreaseReplicaCount
- decreaseReplicaCount_newReplicaCount :: Lens' DecreaseReplicaCount (Maybe Int)
- decreaseReplicaCount_replicaConfiguration :: Lens' DecreaseReplicaCount (Maybe [ConfigureShard])
- decreaseReplicaCount_replicasToRemove :: Lens' DecreaseReplicaCount (Maybe [Text])
- decreaseReplicaCount_replicationGroupId :: Lens' DecreaseReplicaCount Text
- decreaseReplicaCount_applyImmediately :: Lens' DecreaseReplicaCount Bool
- data DecreaseReplicaCountResponse = DecreaseReplicaCountResponse' {}
- newDecreaseReplicaCountResponse :: Int -> DecreaseReplicaCountResponse
- decreaseReplicaCountResponse_replicationGroup :: Lens' DecreaseReplicaCountResponse (Maybe ReplicationGroup)
- decreaseReplicaCountResponse_httpStatus :: Lens' DecreaseReplicaCountResponse Int
Creating a Request
data DecreaseReplicaCount Source #
See: newDecreaseReplicaCount
smart constructor.
DecreaseReplicaCount' | |
|
Instances
newDecreaseReplicaCount Source #
:: Text | |
-> Bool | |
-> DecreaseReplicaCount |
Create a value of DecreaseReplicaCount
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:newReplicaCount':DecreaseReplicaCount'
, decreaseReplicaCount_newReplicaCount
- The number of read replica nodes you want at the completion of this
operation. For Redis (cluster mode disabled) replication groups, this is
the number of replica nodes in the replication group. For Redis (cluster
mode enabled) replication groups, this is the number of replica nodes in
each of the replication group's node groups.
The minimum number of replicas in a shard or replication group is:
Redis (cluster mode disabled)
- If Multi-AZ is enabled: 1
- If Multi-AZ is not enabled: 0
- Redis (cluster mode enabled): 0 (though you will not be able to failover to a replica if your primary node fails)
$sel:replicaConfiguration:DecreaseReplicaCount'
, decreaseReplicaCount_replicaConfiguration
- A list of ConfigureShard
objects that can be used to configure each
shard in a Redis (cluster mode enabled) replication group. The
ConfigureShard
has three members: NewReplicaCount
, NodeGroupId
,
and PreferredAvailabilityZones
.
$sel:replicasToRemove:DecreaseReplicaCount'
, decreaseReplicaCount_replicasToRemove
- A list of the node ids to remove from the replication group or node
group (shard).
$sel:replicationGroupId:DecreaseReplicaCount'
, decreaseReplicaCount_replicationGroupId
- The id of the replication group from which you want to remove replica
nodes.
$sel:applyImmediately:DecreaseReplicaCount'
, decreaseReplicaCount_applyImmediately
- If True
, the number of replica nodes is decreased immediately.
ApplyImmediately=False
is not currently supported.
Request Lenses
decreaseReplicaCount_newReplicaCount :: Lens' DecreaseReplicaCount (Maybe Int) Source #
The number of read replica nodes you want at the completion of this operation. For Redis (cluster mode disabled) replication groups, this is the number of replica nodes in the replication group. For Redis (cluster mode enabled) replication groups, this is the number of replica nodes in each of the replication group's node groups.
The minimum number of replicas in a shard or replication group is:
Redis (cluster mode disabled)
- If Multi-AZ is enabled: 1
- If Multi-AZ is not enabled: 0
- Redis (cluster mode enabled): 0 (though you will not be able to failover to a replica if your primary node fails)
decreaseReplicaCount_replicaConfiguration :: Lens' DecreaseReplicaCount (Maybe [ConfigureShard]) Source #
A list of ConfigureShard
objects that can be used to configure each
shard in a Redis (cluster mode enabled) replication group. The
ConfigureShard
has three members: NewReplicaCount
, NodeGroupId
,
and PreferredAvailabilityZones
.
decreaseReplicaCount_replicasToRemove :: Lens' DecreaseReplicaCount (Maybe [Text]) Source #
A list of the node ids to remove from the replication group or node group (shard).
decreaseReplicaCount_replicationGroupId :: Lens' DecreaseReplicaCount Text Source #
The id of the replication group from which you want to remove replica nodes.
decreaseReplicaCount_applyImmediately :: Lens' DecreaseReplicaCount Bool Source #
If True
, the number of replica nodes is decreased immediately.
ApplyImmediately=False
is not currently supported.
Destructuring the Response
data DecreaseReplicaCountResponse Source #
See: newDecreaseReplicaCountResponse
smart constructor.
DecreaseReplicaCountResponse' | |
|
Instances
newDecreaseReplicaCountResponse Source #
Create a value of DecreaseReplicaCountResponse
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:replicationGroup:DecreaseReplicaCountResponse'
, decreaseReplicaCountResponse_replicationGroup
- Undocumented member.
$sel:httpStatus:DecreaseReplicaCountResponse'
, decreaseReplicaCountResponse_httpStatus
- The response's http status code.
Response Lenses
decreaseReplicaCountResponse_replicationGroup :: Lens' DecreaseReplicaCountResponse (Maybe ReplicationGroup) Source #
Undocumented member.
decreaseReplicaCountResponse_httpStatus :: Lens' DecreaseReplicaCountResponse Int Source #
The response's http status code.