modify_replication_group_shard_configuration
¶
modify_replication_group_shard_configuration(
*,
config_overrides: Optional[ElastiCacheClientConfig] = None,
replication_group_id: Optional[String] = None,
node_group_count: Optional[Integer] = None,
apply_immediately: Optional[Boolean] = None,
resharding_configuration: Optional[ReshardingConfigurationList] = None,
node_groups_to_remove: Optional[NodeGroupsToRemoveList] = None,
node_groups_to_retain: Optional[NodeGroupsToRetainList] = None,
) -> ModifyReplicationGroupShardConfigurationResult
Modifies a replication group's shards (node groups) by allowing you to add shards, remove shards, or rebalance the keyspaces among existing shards.
Parameters:
-
replication_group_id(Optional[String], default:None) –The name of the Valkey or Redis OSS (cluster mode enabled) cluster (replication group) on which the shards are to be configured.
-
node_group_count(Optional[Integer], default:None) –The number of node groups (shards) that results from the modification of the shard configuration.
-
apply_immediately(Optional[Boolean], default:None) –Indicates that the shard reconfiguration process begins immediately. At present, the only permitted value for this parameter is
true.Value: true
-
resharding_configuration(Optional[ReshardingConfigurationList], default:None) –Specifies the preferred availability zones for each node group in the cluster. If the value of
NodeGroupCountis greater than the current number of node groups (shards), you can use this parameter to specify the preferred availability zones of the cluster's shards. If you omit this parameter ElastiCache selects availability zones for you.You can specify this parameter only if the value of
NodeGroupCountis greater than the current number of node groups (shards). -
node_groups_to_remove(Optional[NodeGroupsToRemoveList], default:None) –If the value of
NodeGroupCountis less than the current number of node groups (shards), then eitherNodeGroupsToRemoveorNodeGroupsToRetainis required.NodeGroupsToRemoveis a list ofNodeGroupIds to remove from the cluster.ElastiCache will attempt to remove all node groups listed by
NodeGroupsToRemovefrom the cluster. -
node_groups_to_retain(Optional[NodeGroupsToRetainList], default:None) –If the value of
NodeGroupCountis less than the current number of node groups (shards), then eitherNodeGroupsToRemoveorNodeGroupsToRetainis required.NodeGroupsToRetainis a list ofNodeGroupIds to retain in the cluster.ElastiCache will attempt to remove all node groups except those listed by
NodeGroupsToRetainfrom the cluster.
Raises:
-
InsufficientCacheClusterCapacityFault–The requested cache node type is not available in the specified Availability Zone. For more information, see InsufficientCacheClusterCapacity in the ElastiCache User Guide.
-
InvalidCacheClusterStateFault–The requested cluster is not in the
availablestate. -
InvalidKMSKeyFault–The KMS key supplied is not valid.
-
InvalidParameterCombinationException–Two or more incompatible parameters were specified.
-
InvalidParameterValueException–The value for a parameter is invalid.
-
InvalidReplicationGroupStateFault–The requested replication group is not in the
availablestate. -
InvalidVPCNetworkStateFault–The VPC network is in an invalid state.
-
NodeGroupsPerReplicationGroupQuotaExceededFault–The request cannot be processed because it would exceed the maximum allowed number of node groups (shards) in a single replication group. The default maximum is 90
-
NodeQuotaForCustomerExceededFault–The request cannot be processed because it would exceed the allowed number of cache nodes per customer.
-
ReplicationGroupNotFoundFault–The specified replication group does not exist.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_elasticache/_services/elasti_cache.py
5785 5786 5787 5788 5789 5790 5791 5792 5793 5794 5795 5796 5797 5798 5799 5800 5801 5802 5803 5804 5805 5806 5807 5808 5809 5810 5811 5812 5813 5814 5815 5816 5817 5818 5819 5820 5821 5822 5823 5824 5825 5826 5827 5828 5829 5830 5831 5832 5833 5834 5835 5836 5837 5838 5839 5840 5841 5842 5843 5844 5845 5846 5847 5848 5849 5850 5851 5852 5853 5854 5855 5856 5857 5858 5859 5860 5861 5862 5863 5864 | |