reorderReceiptRuleSet method

Future<void> reorderReceiptRuleSet({
  1. required List<String> ruleNames,
  2. required String ruleSetName,
})

Reorders the receipt rules within a receipt rule set. For information about managing receipt rule sets, see the Amazon SES Developer Guide.

You can execute this operation no more than once per second.

May throw RuleSetDoesNotExistException. May throw RuleDoesNotExistException.

Parameter ruleNames : A list of the specified receipt rule set's receipt rules in the order that you want to put them.

Parameter ruleSetName : The name of the receipt rule set to reorder.

Implementation

Future<void> reorderReceiptRuleSet({
  required List<String> ruleNames,
  required String ruleSetName,
}) async {
  ArgumentError.checkNotNull(ruleNames, 'ruleNames');
  ArgumentError.checkNotNull(ruleSetName, 'ruleSetName');
  final $request = <String, dynamic>{};
  $request['RuleNames'] = ruleNames;
  $request['RuleSetName'] = ruleSetName;
  await _protocol.send(
    $request,
    action: 'ReorderReceiptRuleSet',
    version: '2010-12-01',
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    shape: shapes['ReorderReceiptRuleSetRequest'],
    shapes: shapes,
    resultWrapper: 'ReorderReceiptRuleSetResult',
  );
}