deleteClusterSecurityGroup method

Future<void> deleteClusterSecurityGroup(
  1. {@required String clusterSecurityGroupName}
)

Deletes an Amazon Redshift security group. You cannot delete a security group that is associated with any clusters. You cannot delete the default security group. For information about managing security groups, go to Amazon Redshift Cluster Security Groups in the Amazon Redshift Cluster Management Guide.

May throw InvalidClusterSecurityGroupStateFault. May throw ClusterSecurityGroupNotFoundFault.

Parameter clusterSecurityGroupName : The name of the cluster security group to be deleted.

Implementation

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