reset_cache_parameter_group
¶
reset_cache_parameter_group(
*,
config_overrides: Optional[ElastiCacheClientConfig] = None,
cache_parameter_group_name: Optional[String] = None,
reset_all_parameters: Optional[Boolean] = None,
parameter_name_values: Optional[ParameterNameValueList] = None,
) -> CacheParameterGroupNameMessage
Modifies the parameters of a cache parameter group to the engine or system default value. You can reset specific parameters by submitting a list of parameter names. To reset the entire cache parameter group, specify the ResetAllParameters and CacheParameterGroupName parameters.
Parameters:
-
cache_parameter_group_name(Optional[String], default:None) –The name of the cache parameter group to reset.
-
reset_all_parameters(Optional[Boolean], default:None) –If
true, all parameters in the cache parameter group are reset to their default values. Iffalse, only the parameters listed byParameterNameValuesare reset to their default values.Valid values:
true|false -
parameter_name_values(Optional[ParameterNameValueList], default:None) –An array of parameter names to reset to their default values. If
ResetAllParametersistrue, do not useParameterNameValues. IfResetAllParametersisfalse, you must specify the name of at least one parameter to reset.
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:
ResetCacheParameterGroup Modifies the parameters of a cache parameter group to the engine or system default value.
>>> client.reset_cache_parameter_group(cache_parameter_group_name='custom-mem1-4', reset_all_parameters=True)
Source code in docs_src/capo_elasticache/_services/elasti_cache.py
6366 6367 6368 6369 6370 6371 6372 6373 6374 6375 6376 6377 6378 6379 6380 6381 6382 6383 6384 6385 6386 6387 6388 6389 6390 6391 6392 6393 6394 6395 6396 6397 6398 6399 6400 6401 6402 6403 6404 6405 6406 6407 6408 6409 6410 6411 6412 6413 6414 6415 6416 6417 6418 6419 6420 6421 6422 6423 6424 6425 6426 6427 6428 6429 6430 6431 | |