updateReceiptRule method

Future<void> updateReceiptRule({
  1. required ReceiptRule rule,
  2. required String ruleSetName,
})

Updates a receipt rule.

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 InvalidSnsTopicException. May throw InvalidS3ConfigurationException. May throw InvalidLambdaFunctionException. May throw RuleSetDoesNotExistException. May throw RuleDoesNotExistException. May throw LimitExceededException.

Parameter rule : A data structure that contains the updated receipt rule information.

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

Implementation

Future<void> updateReceiptRule({
  required ReceiptRule rule,
  required String ruleSetName,
}) async {
  ArgumentError.checkNotNull(rule, 'rule');
  ArgumentError.checkNotNull(ruleSetName, 'ruleSetName');
  final $request = <String, dynamic>{};
  $request['Rule'] = rule;
  $request['RuleSetName'] = ruleSetName;
  await _protocol.send(
    $request,
    action: 'UpdateReceiptRule',
    version: '2010-12-01',
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    shape: shapes['UpdateReceiptRuleRequest'],
    shapes: shapes,
    resultWrapper: 'UpdateReceiptRuleResult',
  );
}