batchUpdateFirewallRule method

Future<BatchUpdateFirewallRuleResponse> batchUpdateFirewallRule({
  1. required List<UpdateFirewallRuleEntry> updateFirewallRuleEntries,
})

Updates multiple DNS Firewall rules in the specified rule group.

May throw AccessDeniedException. May throw InternalServiceErrorException. May throw LimitExceededException. May throw ThrottlingException. May throw ValidationException.

Parameter updateFirewallRuleEntries : The list of firewall rules to update.

Implementation

Future<BatchUpdateFirewallRuleResponse> batchUpdateFirewallRule({
  required List<UpdateFirewallRuleEntry> updateFirewallRuleEntries,
}) async {
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target': 'Route53Resolver.BatchUpdateFirewallRule'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'UpdateFirewallRuleEntries': updateFirewallRuleEntries,
    },
  );

  return BatchUpdateFirewallRuleResponse.fromJson(jsonResponse.body);
}