putConfigurationSetReputationOptions method
Enable or disable collection of reputation metrics for emails that you send using a particular configuration set in a specific AWS Region.
May throw NotFoundException. May throw TooManyRequestsException. May throw BadRequestException.
Parameter configurationSetName
:
The name of the configuration set that you want to enable or disable
reputation metric tracking for.
Parameter reputationMetricsEnabled
:
If true
, tracking of reputation metrics is enabled for the
configuration set. If false
, tracking of reputation metrics
is disabled for the configuration set.
Implementation
Future<void> putConfigurationSetReputationOptions({
required String configurationSetName,
bool? reputationMetricsEnabled,
}) async {
ArgumentError.checkNotNull(configurationSetName, 'configurationSetName');
final $payload = <String, dynamic>{
if (reputationMetricsEnabled != null)
'ReputationMetricsEnabled': reputationMetricsEnabled,
};
final response = await _protocol.send(
payload: $payload,
method: 'PUT',
requestUri:
'/v2/email/configuration-sets/${Uri.encodeComponent(configurationSetName)}/reputation-options',
exceptionFnMap: _exceptionFns,
);
}