createReceiptRuleSet method
Creates an empty receipt rule set.
For information about setting up receipt rule sets, see the Amazon SES Developer Guide.
You can execute this operation no more than once per second.
May throw AlreadyExistsException. May throw LimitExceededException.
Parameter ruleSetName
:
The name of the rule set to create. The name must:
- This value can only contain ASCII letters (a-z, A-Z), numbers (0-9), underscores (_), or dashes (-).
- Start and end with a letter or number.
- Contain less than 64 characters.
Implementation
Future<void> createReceiptRuleSet({
required String ruleSetName,
}) async {
ArgumentError.checkNotNull(ruleSetName, 'ruleSetName');
final $request = <String, dynamic>{};
$request['RuleSetName'] = ruleSetName;
await _protocol.send(
$request,
action: 'CreateReceiptRuleSet',
version: '2010-12-01',
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
shape: shapes['CreateReceiptRuleSetRequest'],
shapes: shapes,
resultWrapper: 'CreateReceiptRuleSetResult',
);
}