batchDeleteFirewallRule method

Future<BatchDeleteFirewallRuleOutput> batchDeleteFirewallRule({
  1. required List<BatchDeleteFirewallRuleInputItem> firewallRules,
})

Deletes multiple DNS firewall rules in a single operation. This is more efficient than deleting rules individually.

May throw AccessDeniedException. May throw InternalServerException. May throw ThrottlingException. May throw ValidationException.

Parameter firewallRules : An array of the DNS Firewall IDs to be deleted.

Implementation

Future<BatchDeleteFirewallRuleOutput> batchDeleteFirewallRule({
  required List<BatchDeleteFirewallRuleInputItem> firewallRules,
}) async {
  final $payload = <String, dynamic>{
    'firewallRules': firewallRules,
  };
  final response = await _protocol.send(
    payload: $payload,
    method: 'POST',
    requestUri: '/firewall-rules/batch-delete',
    exceptionFnMap: _exceptionFns,
  );
  return BatchDeleteFirewallRuleOutput.fromJson(response);
}