setReceiptRulePosition method
Sets the position of the specified receipt rule in the receipt rule set.
For information about managing receipt rules, see the Amazon SES Developer Guide.
You can execute this operation no more than once per second.
May throw RuleSetDoesNotExistException. May throw RuleDoesNotExistException.
Parameter ruleName
:
The name of the receipt rule to reposition.
Parameter ruleSetName
:
The name of the receipt rule set that contains the receipt rule to
reposition.
Parameter after
:
The name of the receipt rule after which to place the specified receipt
rule.
Implementation
Future<void> setReceiptRulePosition({
required String ruleName,
required String ruleSetName,
String? after,
}) async {
ArgumentError.checkNotNull(ruleName, 'ruleName');
ArgumentError.checkNotNull(ruleSetName, 'ruleSetName');
final $request = <String, dynamic>{};
$request['RuleName'] = ruleName;
$request['RuleSetName'] = ruleSetName;
after?.also((arg) => $request['After'] = arg);
await _protocol.send(
$request,
action: 'SetReceiptRulePosition',
version: '2010-12-01',
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
shape: shapes['SetReceiptRulePositionRequest'],
shapes: shapes,
resultWrapper: 'SetReceiptRulePositionResult',
);
}