resetDBClusterParameterGroup method
Modifies the parameters of a cluster parameter group to the default value.
To reset specific parameters, submit a list of the following:
ParameterName
and ApplyMethod
. To reset the
entire cluster parameter group, specify the
DBClusterParameterGroupName
and
ResetAllParameters
parameters.
When you reset the entire group, dynamic parameters are updated
immediately and static parameters are set to pending-reboot
to take effect on the next DB instance reboot.
May throw InvalidDBParameterGroupStateFault. May throw DBParameterGroupNotFoundFault.
Parameter dBClusterParameterGroupName
:
The name of the cluster parameter group to reset.
Parameter parameters
:
A list of parameter names in the cluster parameter group to reset to the
default values. You can't use this parameter if the
ResetAllParameters
parameter is set to true
.
Parameter resetAllParameters
:
A value that is set to true
to reset all parameters in the
cluster parameter group to their default values, and false
otherwise. You can't use this parameter if there is a list of parameter
names specified for the Parameters
parameter.
Implementation
Future<DBClusterParameterGroupNameMessage> resetDBClusterParameterGroup({
required String dBClusterParameterGroupName,
List<Parameter>? parameters,
bool? resetAllParameters,
}) async {
ArgumentError.checkNotNull(
dBClusterParameterGroupName, 'dBClusterParameterGroupName');
final $request = <String, dynamic>{};
$request['DBClusterParameterGroupName'] = dBClusterParameterGroupName;
parameters?.also((arg) => $request['Parameters'] = arg);
resetAllParameters?.also((arg) => $request['ResetAllParameters'] = arg);
final $result = await _protocol.send(
$request,
action: 'ResetDBClusterParameterGroup',
version: '2014-10-31',
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
shape: shapes['ResetDBClusterParameterGroupMessage'],
shapes: shapes,
resultWrapper: 'ResetDBClusterParameterGroupResult',
);
return DBClusterParameterGroupNameMessage.fromXml($result);
}