updateConfigurationSetReputationMetricsEnabled method

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

Enables or disables the publishing of reputation metrics for emails sent using a specific configuration set in a given AWS Region. Reputation metrics include bounce and complaint rates. These metrics are published to Amazon CloudWatch. By using CloudWatch, you can create alarms when bounce or complaint rates 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 or not Amazon SES will publish reputation metrics for the configuration set, such as bounce and complaint rates, to Amazon CloudWatch.

Implementation

Future<void> updateConfigurationSetReputationMetricsEnabled({
  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: 'UpdateConfigurationSetReputationMetricsEnabled',
    version: '2010-12-01',
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    shape: shapes['UpdateConfigurationSetReputationMetricsEnabledRequest'],
    shapes: shapes,
  );
}