deleteDBParameterGroup method

Future<void> deleteDBParameterGroup({
  1. required String dBParameterGroupName,
})

Deletes a specified DB parameter group. The DB parameter group to be deleted can't be associated with any DB instances.

May throw InvalidDBParameterGroupStateFault. May throw DBParameterGroupNotFoundFault.

Parameter dBParameterGroupName : The name of the DB parameter group.

Constraints:

  • Must be the name of an existing DB parameter group
  • You can't delete a default DB parameter group
  • Can't be associated with any DB instances

Implementation

Future<void> deleteDBParameterGroup({
  required String dBParameterGroupName,
}) async {
  ArgumentError.checkNotNull(dBParameterGroupName, 'dBParameterGroupName');
  final $request = <String, dynamic>{};
  $request['DBParameterGroupName'] = dBParameterGroupName;
  await _protocol.send(
    $request,
    action: 'DeleteDBParameterGroup',
    version: '2014-10-31',
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    shape: shapes['DeleteDBParameterGroupMessage'],
    shapes: shapes,
  );
}