Skip to content

DecreaseReplicationFactor

Source: src/AWS/DAX/DecreaseReplicationFactor.ts

Runtime binding for the DecreaseReplicationFactor operation (IAM action dax:DecreaseReplicationFactor), scoped to one Cluster.

Removes read-replica nodes from the bound DAX cluster — the scale-in half of node-count automation (e.g. shrinking a cluster off-peak to cut node-hour cost). Provide the implementation with Effect.provide(AWS.DAX.DecreaseReplicationFactorHttp).

const decreaseReplicationFactor =
yield* DAX.DecreaseReplicationFactor(cluster);
const result = yield* decreaseReplicationFactor({
NewReplicationFactor: 1,
});
// result.Cluster?.TotalNodes → 1 once the removal completes