createReceiptFilter method
Creates a new IP address filter.
For information about setting up IP address filters, see the Amazon SES Developer Guide.
You can execute this operation no more than once per second.
May throw LimitExceededException. May throw AlreadyExistsException.
Parameter filter
:
A data structure that describes the IP address filter to create, which
consists of a name, an IP address range, and whether to allow or block
mail from it.
Implementation
Future<void> createReceiptFilter({
required ReceiptFilter filter,
}) async {
ArgumentError.checkNotNull(filter, 'filter');
final $request = <String, dynamic>{};
$request['Filter'] = filter;
await _protocol.send(
$request,
action: 'CreateReceiptFilter',
version: '2010-12-01',
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
shape: shapes['CreateReceiptFilterRequest'],
shapes: shapes,
resultWrapper: 'CreateReceiptFilterResult',
);
}