deleteClusterParameterGroup method

Future<void> deleteClusterParameterGroup({
  1. required String parameterGroupName,
})

Deletes a specified Amazon Redshift parameter group.

May throw InvalidClusterParameterGroupStateFault. May throw ClusterParameterGroupNotFoundFault.

Parameter parameterGroupName : The name of the parameter group to be deleted.

Constraints:

  • Must be the name of an existing cluster parameter group.
  • Cannot delete a default cluster parameter group.

Implementation

Future<void> deleteClusterParameterGroup({
  required String parameterGroupName,
}) async {
  ArgumentError.checkNotNull(parameterGroupName, 'parameterGroupName');
  _s.validateStringLength(
    'parameterGroupName',
    parameterGroupName,
    0,
    2147483647,
    isRequired: true,
  );
  final $request = <String, dynamic>{};
  $request['ParameterGroupName'] = parameterGroupName;
  await _protocol.send(
    $request,
    action: 'DeleteClusterParameterGroup',
    version: '2012-12-01',
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    shape: shapes['DeleteClusterParameterGroupMessage'],
    shapes: shapes,
  );
}