reset_cache_parameter_group
async
¶
reset_cache_parameter_group(
*,
config_overrides: Optional[AsyncElastiCacheClientConfig] = 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.
>>> await client.reset_cache_parameter_group(cache_parameter_group_name='custom-mem1-4', reset_all_parameters=True)
Source code in docs_src/capo_elasticache/_services/async_elasti_cache.py
6442 6443 6444 6445 6446 6447 6448 6449 6450 6451 6452 6453 6454 6455 6456 6457 6458 6459 6460 6461 6462 6463 6464 6465 6466 6467 6468 6469 6470 6471 6472 6473 6474 6475 6476 6477 6478 6479 6480 6481 6482 6483 6484 6485 6486 6487 6488 6489 6490 6491 6492 6493 6494 6495 6496 6497 6498 6499 6500 6501 6502 6503 6504 6505 6506 6507 6508 | |