primaryAvailabilityZoneoptionalstringprimary_availability_zoneoptionalstrprimaryAvailabilityZoneoptionalStringPrimaryAvailabilityZoneoptionalstringPrimaryAvailabilityZoneoptional*string#NodeGroupConfiguration is a property of the AWS::ElastiCache::ReplicationGroup resource that configures an Amazon ElastiCache (ElastiCache) Valkey or Redis OSS cluster node group.
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_elasticache as elasticache } from 'aws-cdk-lib';
const nodeGroupConfigurationProperty: elasticache.CfnReplicationGroup.NodeGroupConfigurationProperty = {
nodeGroupId: 'nodeGroupId',
primaryAvailabilityZone: 'primaryAvailabilityZone',
replicaAvailabilityZones: ['replicaAvailabilityZones'],
replicaCount: 123,
slots: 'slots',
};
nodeGroupId?optionalstringnode_group_id?optionalstrnodeGroupId?optionalStringNodeGroupId?optionalstringNodeGroupId?optional*string#primaryAvailabilityZone?optionalstringprimary_availability_zone?optionalstrprimaryAvailabilityZone?optionalStringPrimaryAvailabilityZone?optionalstringPrimaryAvailabilityZone?optional*string#replicaAvailabilityZones?optionalstring[]replica_availability_zones?optionaltyping.List[str]replicaAvailabilityZones?optionalList<String>ReplicaAvailabilityZones?optionalstring[]ReplicaAvailabilityZones?optional*[]*string#The number of Availability Zones in this list must match the value of ReplicaCount or ReplicasPerNodeGroup if not specified.
replicaCount?optionalnumberreplica_count?optionalint | floatreplicaCount?optionalNumberReplicaCount?optionaldoubleReplicaCount?optional*float64#The following example specifies three slots (numbered 0, 1, and 2): 0,1,2,0-4999,5000-9999,10000-16,383 .
If you don't specify a value, ElastiCache allocates keys equally among each slot.
When you use an UseOnlineResharding update policy to update the number of node groups without interruption, ElastiCache evenly distributes the keyspaces between the specified number of slots. This cannot be updated later. Therefore, after updating the number of node groups in this way, you should remove the value specified for the Slots property of each NodeGroupConfiguration from the stack template, as it no longer reflects the actual values in each node group. For more information, see UseOnlineResharding Policy .