modifyDBClusterParameterGroup method

Future<DBClusterParameterGroupNameMessage> modifyDBClusterParameterGroup({
  1. required String dBClusterParameterGroupName,
  2. required List<Parameter> parameters,
})

Modifies the parameters of a DB cluster parameter group. To modify more than one parameter, submit a list of the following: ParameterName, ParameterValue, and ApplyMethod. A maximum of 20 parameters can be modified in a single request.

For more information on Amazon Aurora, see What Is Amazon Aurora? in the Amazon Aurora User Guide.

If the modified DB cluster parameter group is used by an Aurora Serverless cluster, Aurora applies the update immediately. The cluster restart might interrupt your workload. In that case, your application must reopen any connections and retry any transactions that were active when the parameter changes took effect.

May throw DBParameterGroupNotFoundFault. May throw InvalidDBParameterGroupStateFault.

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

Parameter parameters : A list of parameters in the DB cluster parameter group to modify.

Implementation

Future<DBClusterParameterGroupNameMessage> modifyDBClusterParameterGroup({
  required String dBClusterParameterGroupName,
  required List<Parameter> parameters,
}) async {
  ArgumentError.checkNotNull(
      dBClusterParameterGroupName, 'dBClusterParameterGroupName');
  ArgumentError.checkNotNull(parameters, 'parameters');
  final $request = <String, dynamic>{};
  $request['DBClusterParameterGroupName'] = dBClusterParameterGroupName;
  $request['Parameters'] = parameters;
  final $result = await _protocol.send(
    $request,
    action: 'ModifyDBClusterParameterGroup',
    version: '2014-10-31',
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    shape: shapes['ModifyDBClusterParameterGroupMessage'],
    shapes: shapes,
    resultWrapper: 'ModifyDBClusterParameterGroupResult',
  );
  return DBClusterParameterGroupNameMessage.fromXml($result);
}