deleteReceiptRule method

Future<void> deleteReceiptRule({
  1. required String ruleName,
  2. required String ruleSetName,
})

Deletes the specified 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 RuleSetDoesNotExistException.

Parameter ruleName : The name of the receipt rule to delete.

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

Implementation

Future<void> deleteReceiptRule({
  required String ruleName,
  required String ruleSetName,
}) async {
  ArgumentError.checkNotNull(ruleName, 'ruleName');
  ArgumentError.checkNotNull(ruleSetName, 'ruleSetName');
  final $request = <String, dynamic>{};
  $request['RuleName'] = ruleName;
  $request['RuleSetName'] = ruleSetName;
  await _protocol.send(
    $request,
    action: 'DeleteReceiptRule',
    version: '2010-12-01',
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    shape: shapes['DeleteReceiptRuleRequest'],
    shapes: shapes,
    resultWrapper: 'DeleteReceiptRuleResult',
  );
}