setRulePriorities method

Future<SetRulePrioritiesOutput> setRulePriorities({
  1. required List<RulePriorityPair> rulePriorities,
})

Sets the priorities of the specified rules.

You can reorder the rules as long as there are no priority conflicts in the new order. Any existing rules that you do not specify retain their current priority.

May throw RuleNotFoundException. May throw PriorityInUseException. May throw OperationNotPermittedException.

Parameter rulePriorities : The rule priorities.

Implementation

Future<SetRulePrioritiesOutput> setRulePriorities({
  required List<RulePriorityPair> rulePriorities,
}) async {
  ArgumentError.checkNotNull(rulePriorities, 'rulePriorities');
  final $request = <String, dynamic>{};
  $request['RulePriorities'] = rulePriorities;
  final $result = await _protocol.send(
    $request,
    action: 'SetRulePriorities',
    version: '2015-12-01',
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    shape: shapes['SetRulePrioritiesInput'],
    shapes: shapes,
    resultWrapper: 'SetRulePrioritiesResult',
  );
  return SetRulePrioritiesOutput.fromXml($result);
}