| 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.DAX.DecreaseReplicationFactor
Description
Removes one or more nodes from a DAX cluster.
You cannot use DecreaseReplicationFactor to remove the last node in a
DAX cluster. If you need to do this, use DeleteCluster instead.
Synopsis
- data DecreaseReplicationFactor = DecreaseReplicationFactor' {}
- newDecreaseReplicationFactor :: Text -> Int -> DecreaseReplicationFactor
- decreaseReplicationFactor_availabilityZones :: Lens' DecreaseReplicationFactor (Maybe [Text])
- decreaseReplicationFactor_nodeIdsToRemove :: Lens' DecreaseReplicationFactor (Maybe [Text])
- decreaseReplicationFactor_clusterName :: Lens' DecreaseReplicationFactor Text
- decreaseReplicationFactor_newReplicationFactor :: Lens' DecreaseReplicationFactor Int
- data DecreaseReplicationFactorResponse = DecreaseReplicationFactorResponse' {
- cluster :: Maybe Cluster
- httpStatus :: Int
- newDecreaseReplicationFactorResponse :: Int -> DecreaseReplicationFactorResponse
- decreaseReplicationFactorResponse_cluster :: Lens' DecreaseReplicationFactorResponse (Maybe Cluster)
- decreaseReplicationFactorResponse_httpStatus :: Lens' DecreaseReplicationFactorResponse Int
Creating a Request
data DecreaseReplicationFactor Source #
See: newDecreaseReplicationFactor smart constructor.
Constructors
| DecreaseReplicationFactor' | |
Fields
| |
Instances
newDecreaseReplicationFactor Source #
Arguments
| :: Text | |
| -> Int | |
| -> DecreaseReplicationFactor |
Create a value of DecreaseReplicationFactor 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:availabilityZones:DecreaseReplicationFactor', decreaseReplicationFactor_availabilityZones - The Availability Zone(s) from which to remove nodes.
DecreaseReplicationFactor, decreaseReplicationFactor_nodeIdsToRemove - The unique identifiers of the nodes to be removed from the cluster.
DecreaseReplicationFactor, decreaseReplicationFactor_clusterName - The name of the DAX cluster from which you want to remove nodes.
$sel:newReplicationFactor':DecreaseReplicationFactor', decreaseReplicationFactor_newReplicationFactor - The new number of nodes for the DAX cluster.
Request Lenses
decreaseReplicationFactor_availabilityZones :: Lens' DecreaseReplicationFactor (Maybe [Text]) Source #
The Availability Zone(s) from which to remove nodes.
decreaseReplicationFactor_nodeIdsToRemove :: Lens' DecreaseReplicationFactor (Maybe [Text]) Source #
The unique identifiers of the nodes to be removed from the cluster.
decreaseReplicationFactor_clusterName :: Lens' DecreaseReplicationFactor Text Source #
The name of the DAX cluster from which you want to remove nodes.
decreaseReplicationFactor_newReplicationFactor :: Lens' DecreaseReplicationFactor Int Source #
The new number of nodes for the DAX cluster.
Destructuring the Response
data DecreaseReplicationFactorResponse Source #
See: newDecreaseReplicationFactorResponse smart constructor.
Constructors
| DecreaseReplicationFactorResponse' | |
Fields
| |
Instances
newDecreaseReplicationFactorResponse Source #
Arguments
| :: Int | |
| -> DecreaseReplicationFactorResponse |
Create a value of DecreaseReplicationFactorResponse 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:DecreaseReplicationFactorResponse', decreaseReplicationFactorResponse_cluster - A description of the DAX cluster, after you have decreased its
replication factor.
$sel:httpStatus:DecreaseReplicationFactorResponse', decreaseReplicationFactorResponse_httpStatus - The response's http status code.
Response Lenses
decreaseReplicationFactorResponse_cluster :: Lens' DecreaseReplicationFactorResponse (Maybe Cluster) Source #
A description of the DAX cluster, after you have decreased its replication factor.
decreaseReplicationFactorResponse_httpStatus :: Lens' DecreaseReplicationFactorResponse Int Source #
The response's http status code.