Decreases the number of node groups in a Global datastore
See https://www.paws-r-sdk.com/docs/elasticache_decrease_node_groups_in_global_replication_group/ for full documentation.
elasticache_decrease_node_groups_in_global_replication_group(
GlobalReplicationGroupId,
NodeGroupCount,
GlobalNodeGroupsToRemove = NULL,
GlobalNodeGroupsToRetain = NULL,
ApplyImmediately
)
[required] The name of the Global datastore
[required] The number of node groups (shards) that results from the modification of the shard configuration
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 (Redis OSS) will attempt to remove all node groups listed by GlobalNodeGroupsToRemove from the cluster.
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 (Redis OSS) will attempt to retain all node groups listed by GlobalNodeGroupsToRetain from the cluster.
[required] Indicates that the shard reconfiguration process begins immediately. At present, the only permitted value for this parameter is true.