modify_cache_parameter_group
¶
modify_cache_parameter_group(
*,
config_overrides: Optional[ElastiCacheClientConfig] = None,
cache_parameter_group_name: Optional[String] = None,
parameter_name_values: Optional[ParameterNameValueList] = None,
) -> CacheParameterGroupNameMessage
Modifies the parameters of a cache parameter group. You can modify up to 20 parameters in a single request by submitting a list parameter name and value pairs.
Parameters:
-
cache_parameter_group_name(Optional[String], default:None) –The name of the cache parameter group to modify.
-
parameter_name_values(Optional[ParameterNameValueList], default:None) –An array of parameter names and values for the parameter update. You must supply at least one parameter name and value; subsequent arguments are optional. A maximum of 20 parameters may be modified per request.
Raises:
-
CacheParameterGroupNotFoundFault–The requested cache parameter group name does not refer to an existing cache parameter group.
-
InvalidCacheParameterGroupStateFault–The current state of the cache parameter group does not allow the requested operation to occur.
-
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.
Examples:
ModifyCacheParameterGroup Modifies one or more parameter values in the specified parameter group. You cannot modify any default parameter group.
>>> client.modify_cache_parameter_group(cache_parameter_group_name='custom-mem1-4', parameter_name_values=[{'ParameterName': 'binding_protocol', 'ParameterValue': 'ascii'}, {'ParameterName': 'chunk_size', 'ParameterValue': '96'}])
Source code in docs_src/capo_elasticache/_services/elasti_cache.py
5378 5379 5380 5381 5382 5383 5384 5385 5386 5387 5388 5389 5390 5391 5392 5393 5394 5395 5396 5397 5398 5399 5400 5401 5402 5403 5404 5405 5406 5407 5408 5409 5410 5411 5412 5413 5414 5415 5416 5417 5418 5419 5420 5421 5422 5423 5424 5425 5426 5427 5428 5429 5430 5431 5432 5433 5434 5435 5436 5437 5438 5439 | |