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 |
Modifies a replication group's shards (node groups) by allowing you to add shards, remove shards, or rebalance the keyspaces among existing shards.
Synopsis
- data ModifyReplicationGroupShardConfiguration = ModifyReplicationGroupShardConfiguration' {}
- newModifyReplicationGroupShardConfiguration :: Text -> Int -> Bool -> ModifyReplicationGroupShardConfiguration
- modifyReplicationGroupShardConfiguration_nodeGroupsToRetain :: Lens' ModifyReplicationGroupShardConfiguration (Maybe [Text])
- modifyReplicationGroupShardConfiguration_reshardingConfiguration :: Lens' ModifyReplicationGroupShardConfiguration (Maybe [ReshardingConfiguration])
- modifyReplicationGroupShardConfiguration_nodeGroupsToRemove :: Lens' ModifyReplicationGroupShardConfiguration (Maybe [Text])
- modifyReplicationGroupShardConfiguration_replicationGroupId :: Lens' ModifyReplicationGroupShardConfiguration Text
- modifyReplicationGroupShardConfiguration_nodeGroupCount :: Lens' ModifyReplicationGroupShardConfiguration Int
- modifyReplicationGroupShardConfiguration_applyImmediately :: Lens' ModifyReplicationGroupShardConfiguration Bool
- data ModifyReplicationGroupShardConfigurationResponse = ModifyReplicationGroupShardConfigurationResponse' {}
- newModifyReplicationGroupShardConfigurationResponse :: Int -> ModifyReplicationGroupShardConfigurationResponse
- modifyReplicationGroupShardConfigurationResponse_replicationGroup :: Lens' ModifyReplicationGroupShardConfigurationResponse (Maybe ReplicationGroup)
- modifyReplicationGroupShardConfigurationResponse_httpStatus :: Lens' ModifyReplicationGroupShardConfigurationResponse Int
Creating a Request
data ModifyReplicationGroupShardConfiguration Source #
Represents the input for a ModifyReplicationGroupShardConfiguration
operation.
See: newModifyReplicationGroupShardConfiguration
smart constructor.
ModifyReplicationGroupShardConfiguration' | |
|
Instances
newModifyReplicationGroupShardConfiguration Source #
Create a value of ModifyReplicationGroupShardConfiguration
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:nodeGroupsToRetain:ModifyReplicationGroupShardConfiguration'
, modifyReplicationGroupShardConfiguration_nodeGroupsToRetain
- If the value of NodeGroupCount
is less than the current number of node
groups (shards), then either NodeGroupsToRemove
or
NodeGroupsToRetain
is required. NodeGroupsToRetain
is a list of
NodeGroupId
s to retain in the cluster.
ElastiCache for Redis will attempt to remove all node groups except
those listed by NodeGroupsToRetain
from the cluster.
$sel:reshardingConfiguration:ModifyReplicationGroupShardConfiguration'
, modifyReplicationGroupShardConfiguration_reshardingConfiguration
- Specifies the preferred availability zones for each node group in the
cluster. If the value of NodeGroupCount
is greater than the current
number of node groups (shards), you can use this parameter to specify
the preferred availability zones of the cluster's shards. If you omit
this parameter ElastiCache selects availability zones for you.
You can specify this parameter only if the value of NodeGroupCount
is
greater than the current number of node groups (shards).
$sel:nodeGroupsToRemove:ModifyReplicationGroupShardConfiguration'
, modifyReplicationGroupShardConfiguration_nodeGroupsToRemove
- If the value of NodeGroupCount
is less than the current number of node
groups (shards), then either NodeGroupsToRemove
or
NodeGroupsToRetain
is required. NodeGroupsToRemove
is a list of
NodeGroupId
s to remove from the cluster.
ElastiCache for Redis will attempt to remove all node groups listed by
NodeGroupsToRemove
from the cluster.
$sel:replicationGroupId:ModifyReplicationGroupShardConfiguration'
, modifyReplicationGroupShardConfiguration_replicationGroupId
- The name of the Redis (cluster mode enabled) cluster (replication group)
on which the shards are to be configured.
$sel:nodeGroupCount:ModifyReplicationGroupShardConfiguration'
, modifyReplicationGroupShardConfiguration_nodeGroupCount
- The number of node groups (shards) that results from the modification of
the shard configuration.
$sel:applyImmediately:ModifyReplicationGroupShardConfiguration'
, modifyReplicationGroupShardConfiguration_applyImmediately
- Indicates that the shard reconfiguration process begins immediately. At
present, the only permitted value for this parameter is true
.
Value: true
Request Lenses
modifyReplicationGroupShardConfiguration_nodeGroupsToRetain :: Lens' ModifyReplicationGroupShardConfiguration (Maybe [Text]) Source #
If the value of NodeGroupCount
is less than the current number of node
groups (shards), then either NodeGroupsToRemove
or
NodeGroupsToRetain
is required. NodeGroupsToRetain
is a list of
NodeGroupId
s to retain in the cluster.
ElastiCache for Redis will attempt to remove all node groups except
those listed by NodeGroupsToRetain
from the cluster.
modifyReplicationGroupShardConfiguration_reshardingConfiguration :: Lens' ModifyReplicationGroupShardConfiguration (Maybe [ReshardingConfiguration]) Source #
Specifies the preferred availability zones for each node group in the
cluster. If the value of NodeGroupCount
is greater than the current
number of node groups (shards), you can use this parameter to specify
the preferred availability zones of the cluster's shards. If you omit
this parameter ElastiCache selects availability zones for you.
You can specify this parameter only if the value of NodeGroupCount
is
greater than the current number of node groups (shards).
modifyReplicationGroupShardConfiguration_nodeGroupsToRemove :: Lens' ModifyReplicationGroupShardConfiguration (Maybe [Text]) Source #
If the value of NodeGroupCount
is less than the current number of node
groups (shards), then either NodeGroupsToRemove
or
NodeGroupsToRetain
is required. NodeGroupsToRemove
is a list of
NodeGroupId
s to remove from the cluster.
ElastiCache for Redis will attempt to remove all node groups listed by
NodeGroupsToRemove
from the cluster.
modifyReplicationGroupShardConfiguration_replicationGroupId :: Lens' ModifyReplicationGroupShardConfiguration Text Source #
The name of the Redis (cluster mode enabled) cluster (replication group) on which the shards are to be configured.
modifyReplicationGroupShardConfiguration_nodeGroupCount :: Lens' ModifyReplicationGroupShardConfiguration Int Source #
The number of node groups (shards) that results from the modification of the shard configuration.
modifyReplicationGroupShardConfiguration_applyImmediately :: Lens' ModifyReplicationGroupShardConfiguration Bool Source #
Indicates that the shard reconfiguration process begins immediately. At
present, the only permitted value for this parameter is true
.
Value: true
Destructuring the Response
data ModifyReplicationGroupShardConfigurationResponse Source #
See: newModifyReplicationGroupShardConfigurationResponse
smart constructor.
ModifyReplicationGroupShardConfigurationResponse' | |
|
Instances
newModifyReplicationGroupShardConfigurationResponse Source #
:: Int |
|
-> ModifyReplicationGroupShardConfigurationResponse |
Create a value of ModifyReplicationGroupShardConfigurationResponse
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:ModifyReplicationGroupShardConfigurationResponse'
, modifyReplicationGroupShardConfigurationResponse_replicationGroup
- Undocumented member.
$sel:httpStatus:ModifyReplicationGroupShardConfigurationResponse'
, modifyReplicationGroupShardConfigurationResponse_httpStatus
- The response's http status code.
Response Lenses
modifyReplicationGroupShardConfigurationResponse_replicationGroup :: Lens' ModifyReplicationGroupShardConfigurationResponse (Maybe ReplicationGroup) Source #
Undocumented member.
modifyReplicationGroupShardConfigurationResponse_httpStatus :: Lens' ModifyReplicationGroupShardConfigurationResponse Int Source #
The response's http status code.