batchCreateFirewallRule method
Future<BatchCreateFirewallRuleResponse>
batchCreateFirewallRule({
- required List<
CreateFirewallRuleEntry> createFirewallRuleEntries,
Creates 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 createFirewallRuleEntries :
The list of firewall rules to create.
Implementation
Future<BatchCreateFirewallRuleResponse> batchCreateFirewallRule({
required List<CreateFirewallRuleEntry> createFirewallRuleEntries,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'Route53Resolver.BatchCreateFirewallRule'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'CreateFirewallRuleEntries': createFirewallRuleEntries,
},
);
return BatchCreateFirewallRuleResponse.fromJson(jsonResponse.body);
}