resetDbParameterGroup
inline suspend fun RdsClient.resetDbParameterGroup(crossinline block: ResetDbParameterGroupRequest.Builder.() -> Unit): ResetDbParameterGroupResponse
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.
Samples
fun main() {
//sampleStart
// The following example resets all parameter values in a customer created DB parameter group to their
// default values.
val resp = rdsClient.resetDbParameterGroup {
dbParameterGroupName = "mypg"
resetAllParameters = true
}
//sampleEnd
}