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 |
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_nodeIdsToRemove :: Lens' DecreaseReplicationFactor (Maybe [Text])
- decreaseReplicationFactor_availabilityZones :: 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.
DecreaseReplicationFactor' | |
|
Instances
newDecreaseReplicationFactor Source #
:: 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:nodeIdsToRemove:DecreaseReplicationFactor'
, decreaseReplicationFactor_nodeIdsToRemove
- The unique identifiers of the nodes to be removed from the cluster.
$sel:availabilityZones:DecreaseReplicationFactor'
, decreaseReplicationFactor_availabilityZones
- The Availability Zone(s) from which to remove nodes.
$sel:clusterName: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_nodeIdsToRemove :: Lens' DecreaseReplicationFactor (Maybe [Text]) Source #
The unique identifiers of the nodes to be removed from the cluster.
decreaseReplicationFactor_availabilityZones :: Lens' DecreaseReplicationFactor (Maybe [Text]) Source #
The Availability Zone(s) from which to remove nodes.
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.
DecreaseReplicationFactorResponse' | |
|
Instances
Eq DecreaseReplicationFactorResponse Source # | |
Read DecreaseReplicationFactorResponse Source # | |
Show DecreaseReplicationFactorResponse Source # | |
Defined in Amazonka.DAX.DecreaseReplicationFactor | |
Generic DecreaseReplicationFactorResponse Source # | |
NFData DecreaseReplicationFactorResponse Source # | |
Defined in Amazonka.DAX.DecreaseReplicationFactor rnf :: DecreaseReplicationFactorResponse -> () # | |
type Rep DecreaseReplicationFactorResponse Source # | |
Defined in Amazonka.DAX.DecreaseReplicationFactor type Rep DecreaseReplicationFactorResponse = D1 ('MetaData "DecreaseReplicationFactorResponse" "Amazonka.DAX.DecreaseReplicationFactor" "libZSservicesZSamazonka-dynamodb-daxZSamazonka-dynamodb-dax" 'False) (C1 ('MetaCons "DecreaseReplicationFactorResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "cluster") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Cluster)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))) |
newDecreaseReplicationFactorResponse Source #
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.