decrease_node_groups_in_global_replication_group
async
¶
decrease_node_groups_in_global_replication_group(
*,
config_overrides: Optional[AsyncElastiCacheClientConfig] = None,
global_replication_group_id: Optional[String] = None,
node_group_count: Optional[Integer] = None,
global_node_groups_to_remove: Optional[GlobalNodeGroupIdList] = None,
global_node_groups_to_retain: Optional[GlobalNodeGroupIdList] = None,
apply_immediately: Optional[Boolean] = None,
) -> DecreaseNodeGroupsInGlobalReplicationGroupResult
Decreases the number of node groups in a Global datastore
Parameters:
-
global_replication_group_id(Optional[String], default:None) –The name of the Global datastore
-
node_group_count(Optional[Integer], default:None) –The number of node groups (shards) that results from the modification of the shard configuration
-
global_node_groups_to_remove(Optional[GlobalNodeGroupIdList], default:None) –If the value of NodeGroupCount is less than the current number of node groups (shards), then either NodeGroupsToRemove or NodeGroupsToRetain is required. GlobalNodeGroupsToRemove is a list of NodeGroupIds to remove from the cluster. ElastiCache will attempt to remove all node groups listed by GlobalNodeGroupsToRemove from the cluster.
-
global_node_groups_to_retain(Optional[GlobalNodeGroupIdList], default:None) –If the value of NodeGroupCount is less than the current number of node groups (shards), then either NodeGroupsToRemove or NodeGroupsToRetain is required. GlobalNodeGroupsToRetain is a list of NodeGroupIds to retain from the cluster. ElastiCache will attempt to retain all node groups listed by GlobalNodeGroupsToRetain from the cluster.
-
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.
Raises:
-
GlobalReplicationGroupNotFoundFault–The Global datastore does not exist
-
InvalidGlobalReplicationGroupStateFault–The Global datastore is not available or in primary-only state.
-
InvalidParameterCombinationException–Two or more incompatible parameters were specified.
-
InvalidParameterValueException–The value for a parameter is invalid.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_elasticache/_services/async_elasti_cache.py
2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 | |