reset_db_parameter_group
async
¶
reset_db_parameter_group(
*,
config_overrides: Optional[AsyncRDSClientConfig] = None,
db_parameter_group_name: Optional[String] = None,
reset_all_parameters: Optional[Boolean] = None,
parameters: Optional[ParametersList] = None,
) -> DBParameterGroupNameMessage
Modifies the parameters of a DB parameter group to the engine/system default value. To reset specific parameters, provide a list of the following: ParameterName and ApplyMethod. To reset the entire DB parameter group, specify the DBParameterGroup name and ResetAllParameters parameters. When resetting the entire group, dynamic parameters are updated immediately and static parameters are set to pending-reboot to take effect on the next DB instance restart or RebootDBInstance request.
Parameters:
-
db_parameter_group_name(Optional[String], default:None) –The name of the DB parameter group.
Constraints:
-
Must match the name of an existing
DBParameterGroup.
-
-
reset_all_parameters(Optional[Boolean], default:None) –Specifies whether to reset all parameters in the DB parameter group to default values. By default, all parameters in the DB parameter group are reset to default values.
-
parameters(Optional[ParametersList], default:None) –To reset the entire DB parameter group, specify the
DBParameterGroupname andResetAllParametersparameters. To reset specific parameters, provide a list of the following:ParameterNameandApplyMethod. A maximum of 20 parameters can be modified in a single request.MySQL
Valid Values (for Apply method):
immediate|pending-rebootYou can use the immediate value with dynamic parameters only. You can use the
pending-rebootvalue for both dynamic and static parameters, and changes are applied when DB instance reboots.MariaDB
Valid Values (for Apply method):
immediate|pending-rebootYou can use the immediate value with dynamic parameters only. You can use the
pending-rebootvalue for both dynamic and static parameters, and changes are applied when DB instance reboots.Oracle
Valid Values (for Apply method):
pending-reboot
Raises:
-
DBParameterGroupNotFoundFault–DBParameterGroupNamedoesn't refer to an existing DB parameter group. -
InvalidDBParameterGroupStateFault–The DB parameter group is in use or is in an invalid state. If you are attempting to delete the parameter group, you can't delete it when the parameter group is in this state.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
To reset all parameters to their default values The following example resets all parameter values in a customer-created DB parameter group to their default values.
>>> await client.reset_db_parameter_group(db_parameter_group_name='mypg', reset_all_parameters=True)
Source code in docs_src/capo_rds/_services/async_rds.py
13714 13715 13716 13717 13718 13719 13720 13721 13722 13723 13724 13725 13726 13727 13728 13729 13730 13731 13732 13733 13734 13735 13736 13737 13738 13739 13740 13741 13742 13743 13744 13745 13746 13747 13748 13749 13750 13751 13752 13753 13754 13755 13756 13757 13758 13759 13760 13761 13762 13763 13764 13765 13766 13767 13768 13769 13770 13771 13772 13773 | |