deleteIPSet method

Future<void> deleteIPSet({
  1. required String detectorId,
  2. required String ipSetId,
})

Deletes the IPSet specified by the ipSetId. IPSets are called trusted IP lists in the console user interface.

May throw BadRequestException. May throw InternalServerErrorException.

Parameter detectorId : The unique ID of the detector associated with the IPSet.

To find the detectorId in the current Region, see the Settings page in the GuardDuty console, or run the ListDetectors API.

Parameter ipSetId : The unique ID of the IPSet to delete.

Implementation

Future<void> deleteIPSet({
  required String detectorId,
  required String ipSetId,
}) async {
  final response = await _protocol.send(
    payload: null,
    method: 'DELETE',
    requestUri:
        '/detector/${Uri.encodeComponent(detectorId)}/ipset/${Uri.encodeComponent(ipSetId)}',
    exceptionFnMap: _exceptionFns,
  );
}