resetDBClusterParameterGroup method

Future<DBClusterParameterGroupNameMessage> resetDBClusterParameterGroup({
  1. required String dBClusterParameterGroupName,
  2. List<Parameter>? parameters,
  3. bool? resetAllParameters,
})

Modifies the parameters of a DB cluster parameter group to the default value. To reset specific parameters submit a list of the following: ParameterName and ApplyMethod. To reset the entire DB cluster parameter group, specify the DBClusterParameterGroupName 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. You must call RebootDBInstance for every DB instance in your DB cluster that you want the updated static parameter to apply to.

May throw InvalidDBParameterGroupStateFault. May throw DBParameterGroupNotFoundFault.

Parameter dBClusterParameterGroupName : The name of the DB cluster parameter group to reset.

Parameter parameters : A list of parameter names in the DB 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 DB 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);
}