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
6546 6547 6548 6549 6550 6551 6552 6553 6554 6555 6556 6557 6558 6559 6560 6561 6562 6563 6564 6565 6566 6567 6568 6569 6570 6571 6572 6573 6574 6575 6576 6577 6578 6579 6580 6581 6582 6583 6584 6585 6586 6587 6588 6589 6590 6591 6592 6593 6594 6595 6596 6597 6598 6599 6600 6601 6602 6603 6604 6605 6606 6607 6608 6609 6610 6611 6612 | |