deleteClusterSubnetGroup method

Future<void> deleteClusterSubnetGroup({
  1. required String clusterSubnetGroupName,
})

Deletes the specified cluster subnet group.

May throw InvalidClusterSubnetGroupStateFault. May throw InvalidClusterSubnetStateFault. May throw ClusterSubnetGroupNotFoundFault.

Parameter clusterSubnetGroupName : The name of the cluster subnet group name to be deleted.

Implementation

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