@Stability(value=Stable) public static final class CfnReplicationGroup.NodeGroupConfigurationProperty.Builder extends Object implements software.amazon.jsii.Builder<CfnReplicationGroup.NodeGroupConfigurationProperty>
CfnReplicationGroup.NodeGroupConfigurationProperty| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
CfnReplicationGroup.NodeGroupConfigurationProperty |
build()
Builds the configured instance.
|
CfnReplicationGroup.NodeGroupConfigurationProperty.Builder |
nodeGroupId(String nodeGroupId)
Sets the value of
CfnReplicationGroup.NodeGroupConfigurationProperty.getNodeGroupId() |
CfnReplicationGroup.NodeGroupConfigurationProperty.Builder |
primaryAvailabilityZone(String primaryAvailabilityZone)
|
CfnReplicationGroup.NodeGroupConfigurationProperty.Builder |
replicaAvailabilityZones(List<String> replicaAvailabilityZones)
|
CfnReplicationGroup.NodeGroupConfigurationProperty.Builder |
replicaCount(Number replicaCount)
Sets the value of
CfnReplicationGroup.NodeGroupConfigurationProperty.getReplicaCount() |
CfnReplicationGroup.NodeGroupConfigurationProperty.Builder |
slots(String slots)
Sets the value of
CfnReplicationGroup.NodeGroupConfigurationProperty.getSlots() |
@Stability(value=Stable) public CfnReplicationGroup.NodeGroupConfigurationProperty.Builder nodeGroupId(String nodeGroupId)
CfnReplicationGroup.NodeGroupConfigurationProperty.getNodeGroupId()nodeGroupId - Either the ElastiCache for Redis supplied 4-digit id or a user supplied id for the node group these configuration values apply to.this@Stability(value=Stable) public CfnReplicationGroup.NodeGroupConfigurationProperty.Builder primaryAvailabilityZone(String primaryAvailabilityZone)
primaryAvailabilityZone - The Availability Zone where the primary node of this node group (shard) is launched.this@Stability(value=Stable) public CfnReplicationGroup.NodeGroupConfigurationProperty.Builder replicaAvailabilityZones(List<String> replicaAvailabilityZones)
replicaAvailabilityZones - 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 ReplicaCount or ReplicasPerNodeGroup if not specified.this@Stability(value=Stable) public CfnReplicationGroup.NodeGroupConfigurationProperty.Builder replicaCount(Number replicaCount)
CfnReplicationGroup.NodeGroupConfigurationProperty.getReplicaCount()replicaCount - The number of read replica nodes in this node group (shard).this@Stability(value=Stable) public CfnReplicationGroup.NodeGroupConfigurationProperty.Builder slots(String slots)
CfnReplicationGroup.NodeGroupConfigurationProperty.getSlots()slots - 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 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 .
this@Stability(value=Stable) public CfnReplicationGroup.NodeGroupConfigurationProperty build()
build in interface software.amazon.jsii.Builder<CfnReplicationGroup.NodeGroupConfigurationProperty>CfnReplicationGroup.NodeGroupConfigurationPropertyNullPointerException - if any required attribute was not providedCopyright © 2022. All rights reserved.