setActiveReceiptRuleSet method

Future<void> setActiveReceiptRuleSet({
  1. String? ruleSetName,
})

Sets the specified receipt rule set as the active 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.

Parameter ruleSetName : The name of the receipt rule set to make active. Setting this value to null disables all email receiving.

Implementation

Future<void> setActiveReceiptRuleSet({
  String? ruleSetName,
}) async {
  final $request = <String, dynamic>{};
  ruleSetName?.also((arg) => $request['RuleSetName'] = arg);
  await _protocol.send(
    $request,
    action: 'SetActiveReceiptRuleSet',
    version: '2010-12-01',
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    shape: shapes['SetActiveReceiptRuleSetRequest'],
    shapes: shapes,
    resultWrapper: 'SetActiveReceiptRuleSetResult',
  );
}