Interface CfnReplicationGroup.NodeGroupConfigurationProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnReplicationGroup.NodeGroupConfigurationProperty.Jsii$Proxy
- Enclosing class:
CfnReplicationGroup
NodeGroupConfiguration is a property of the AWS::ElastiCache::ReplicationGroup resource that configures an Amazon ElastiCache (ElastiCache) Valkey or Redis OSS cluster node group.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.elasticache.*;
NodeGroupConfigurationProperty nodeGroupConfigurationProperty = NodeGroupConfigurationProperty.builder()
.nodeGroupId("nodeGroupId")
.primaryAvailabilityZone("primaryAvailabilityZone")
.replicaAvailabilityZones(List.of("replicaAvailabilityZones"))
.replicaCount(123)
.slots("slots")
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnReplicationGroup.NodeGroupConfigurationPropertystatic final classAn implementation forCfnReplicationGroup.NodeGroupConfigurationProperty -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default StringEither the ElastiCache supplied 4-digit id or a user supplied id for the node group these configuration values apply to.default StringThe Availability Zone where the primary node of this node group (shard) is launched.A list of Availability Zones to be used for the read replicas.default NumberThe number of read replica nodes in this node group (shard).default StringgetSlots()A string of comma-separated values where the first set of values are the slot numbers (zero based), and the second set of values are the keyspaces for each slot.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getNodeGroupId
Either the ElastiCache supplied 4-digit id or a user supplied id for the node group these configuration values apply to.- See Also:
-
getPrimaryAvailabilityZone
The Availability Zone where the primary node of this node group (shard) is launched.- See Also:
-
getReplicaAvailabilityZones
A list of Availability Zones to be used for the read replicas.The number of Availability Zones in this list must match the value of
ReplicaCountorReplicasPerNodeGroupif not specified.- See Also:
-
getReplicaCount
The number of read replica nodes in this node group (shard).- See Also:
-
getSlots
A string of comma-separated values where the first set of values are the slot numbers (zero based), and the second set of values are the keyspaces for each slot.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
UseOnlineReshardingupdate 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 theSlotsproperty of eachNodeGroupConfigurationfrom the stack template, as it no longer reflects the actual values in each node group. For more information, see UseOnlineResharding Policy .- See Also:
-
builder
-