updateConfigurationSetSendingEnabled method

Future<void> updateConfigurationSetSendingEnabled({
  1. required String configurationSetName,
  2. required bool enabled,
})

Enables or disables email sending for messages sent using a specific configuration set in a given AWS Region. You can use this operation in conjunction with Amazon CloudWatch alarms to temporarily pause email sending for a configuration set when the reputation metrics for that configuration set (such as your bounce on complaint rate) exceed certain thresholds.

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

May throw ConfigurationSetDoesNotExistException.

Parameter configurationSetName : The name of the configuration set that you want to update.

Parameter enabled : Describes whether email sending is enabled or disabled for the configuration set.

Implementation

Future<void> updateConfigurationSetSendingEnabled({
  required String configurationSetName,
  required bool enabled,
}) async {
  ArgumentError.checkNotNull(configurationSetName, 'configurationSetName');
  ArgumentError.checkNotNull(enabled, 'enabled');
  final $request = <String, dynamic>{};
  $request['ConfigurationSetName'] = configurationSetName;
  $request['Enabled'] = enabled;
  await _protocol.send(
    $request,
    action: 'UpdateConfigurationSetSendingEnabled',
    version: '2010-12-01',
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    shape: shapes['UpdateConfigurationSetSendingEnabledRequest'],
    shapes: shapes,
  );
}