| 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.ElastiCache.DecreaseNodeGroupsInGlobalReplicationGroup
Description
Decreases the number of node groups in a Global datastore
Synopsis
- data DecreaseNodeGroupsInGlobalReplicationGroup = DecreaseNodeGroupsInGlobalReplicationGroup' {}
- newDecreaseNodeGroupsInGlobalReplicationGroup :: Text -> Int -> Bool -> DecreaseNodeGroupsInGlobalReplicationGroup
- decreaseNodeGroupsInGlobalReplicationGroup_globalNodeGroupsToRemove :: Lens' DecreaseNodeGroupsInGlobalReplicationGroup (Maybe [Text])
- decreaseNodeGroupsInGlobalReplicationGroup_globalNodeGroupsToRetain :: Lens' DecreaseNodeGroupsInGlobalReplicationGroup (Maybe [Text])
- decreaseNodeGroupsInGlobalReplicationGroup_globalReplicationGroupId :: Lens' DecreaseNodeGroupsInGlobalReplicationGroup Text
- decreaseNodeGroupsInGlobalReplicationGroup_nodeGroupCount :: Lens' DecreaseNodeGroupsInGlobalReplicationGroup Int
- decreaseNodeGroupsInGlobalReplicationGroup_applyImmediately :: Lens' DecreaseNodeGroupsInGlobalReplicationGroup Bool
- data DecreaseNodeGroupsInGlobalReplicationGroupResponse = DecreaseNodeGroupsInGlobalReplicationGroupResponse' {}
- newDecreaseNodeGroupsInGlobalReplicationGroupResponse :: Int -> DecreaseNodeGroupsInGlobalReplicationGroupResponse
- decreaseNodeGroupsInGlobalReplicationGroupResponse_globalReplicationGroup :: Lens' DecreaseNodeGroupsInGlobalReplicationGroupResponse (Maybe GlobalReplicationGroup)
- decreaseNodeGroupsInGlobalReplicationGroupResponse_httpStatus :: Lens' DecreaseNodeGroupsInGlobalReplicationGroupResponse Int
Creating a Request
data DecreaseNodeGroupsInGlobalReplicationGroup Source #
See: newDecreaseNodeGroupsInGlobalReplicationGroup smart constructor.
Constructors
| DecreaseNodeGroupsInGlobalReplicationGroup' | |
Fields
| |
Instances
newDecreaseNodeGroupsInGlobalReplicationGroup Source #
Arguments
| :: Text | |
| -> Int |
|
| -> Bool |
|
| -> DecreaseNodeGroupsInGlobalReplicationGroup |
Create a value of DecreaseNodeGroupsInGlobalReplicationGroup 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:globalNodeGroupsToRemove:DecreaseNodeGroupsInGlobalReplicationGroup', decreaseNodeGroupsInGlobalReplicationGroup_globalNodeGroupsToRemove - If the value of NodeGroupCount is less than the current number of node
groups (shards), then either NodeGroupsToRemove or NodeGroupsToRetain is
required. GlobalNodeGroupsToRemove is a list of NodeGroupIds to remove
from the cluster. ElastiCache for Redis will attempt to remove all node
groups listed by GlobalNodeGroupsToRemove from the cluster.
$sel:globalNodeGroupsToRetain:DecreaseNodeGroupsInGlobalReplicationGroup', decreaseNodeGroupsInGlobalReplicationGroup_globalNodeGroupsToRetain - If the value of NodeGroupCount is less than the current number of node
groups (shards), then either NodeGroupsToRemove or NodeGroupsToRetain is
required. GlobalNodeGroupsToRetain is a list of NodeGroupIds to retain
from the cluster. ElastiCache for Redis will attempt to retain all node
groups listed by GlobalNodeGroupsToRetain from the cluster.
DecreaseNodeGroupsInGlobalReplicationGroup, decreaseNodeGroupsInGlobalReplicationGroup_globalReplicationGroupId - The name of the Global datastore
$sel:nodeGroupCount:DecreaseNodeGroupsInGlobalReplicationGroup', decreaseNodeGroupsInGlobalReplicationGroup_nodeGroupCount - The number of node groups (shards) that results from the modification of
the shard configuration
$sel:applyImmediately:DecreaseNodeGroupsInGlobalReplicationGroup', decreaseNodeGroupsInGlobalReplicationGroup_applyImmediately - Indicates that the shard reconfiguration process begins immediately. At
present, the only permitted value for this parameter is true.
Request Lenses
decreaseNodeGroupsInGlobalReplicationGroup_globalNodeGroupsToRemove :: Lens' DecreaseNodeGroupsInGlobalReplicationGroup (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. GlobalNodeGroupsToRemove is a list of NodeGroupIds to remove from the cluster. ElastiCache for Redis will attempt to remove all node groups listed by GlobalNodeGroupsToRemove from the cluster.
decreaseNodeGroupsInGlobalReplicationGroup_globalNodeGroupsToRetain :: Lens' DecreaseNodeGroupsInGlobalReplicationGroup (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. GlobalNodeGroupsToRetain is a list of NodeGroupIds to retain from the cluster. ElastiCache for Redis will attempt to retain all node groups listed by GlobalNodeGroupsToRetain from the cluster.
decreaseNodeGroupsInGlobalReplicationGroup_globalReplicationGroupId :: Lens' DecreaseNodeGroupsInGlobalReplicationGroup Text Source #
The name of the Global datastore
decreaseNodeGroupsInGlobalReplicationGroup_nodeGroupCount :: Lens' DecreaseNodeGroupsInGlobalReplicationGroup Int Source #
The number of node groups (shards) that results from the modification of the shard configuration
decreaseNodeGroupsInGlobalReplicationGroup_applyImmediately :: Lens' DecreaseNodeGroupsInGlobalReplicationGroup Bool Source #
Indicates that the shard reconfiguration process begins immediately. At present, the only permitted value for this parameter is true.
Destructuring the Response
data DecreaseNodeGroupsInGlobalReplicationGroupResponse Source #
See: newDecreaseNodeGroupsInGlobalReplicationGroupResponse smart constructor.
Constructors
| DecreaseNodeGroupsInGlobalReplicationGroupResponse' | |
Fields
| |
Instances
newDecreaseNodeGroupsInGlobalReplicationGroupResponse Source #
Arguments
| :: Int |
|
| -> DecreaseNodeGroupsInGlobalReplicationGroupResponse |
Create a value of DecreaseNodeGroupsInGlobalReplicationGroupResponse 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:globalReplicationGroup:DecreaseNodeGroupsInGlobalReplicationGroupResponse', decreaseNodeGroupsInGlobalReplicationGroupResponse_globalReplicationGroup - Undocumented member.
$sel:httpStatus:DecreaseNodeGroupsInGlobalReplicationGroupResponse', decreaseNodeGroupsInGlobalReplicationGroupResponse_httpStatus - The response's http status code.
Response Lenses
decreaseNodeGroupsInGlobalReplicationGroupResponse_globalReplicationGroup :: Lens' DecreaseNodeGroupsInGlobalReplicationGroupResponse (Maybe GlobalReplicationGroup) Source #
Undocumented member.
decreaseNodeGroupsInGlobalReplicationGroupResponse_httpStatus :: Lens' DecreaseNodeGroupsInGlobalReplicationGroupResponse Int Source #
The response's http status code.