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
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 5865 5866 5867 5868 5869 5870 5871 5872 5873 5874 5875 5876 5877 5878 5879 5880 5881 5882 5883 5884 5885 5886 5887 5888 5889 5890 5891 5892 5893 5894 5895 5896 5897 5898 5899 | |