setIdentityFeedbackForwardingEnabled method

Future<void> setIdentityFeedbackForwardingEnabled({
  1. required bool forwardingEnabled,
  2. required String identity,
})

Given an identity (an email address or a domain), enables or disables whether Amazon SES forwards bounce and complaint notifications as email. Feedback forwarding can only be disabled when Amazon Simple Notification Service (Amazon SNS) topics are specified for both bounces and complaints. You can execute this operation no more than once per second.

For more information about using notifications with Amazon SES, see the Amazon SES Developer Guide.

Parameter forwardingEnabled : Sets whether Amazon SES will forward bounce and complaint notifications as email. true specifies that Amazon SES will forward bounce and complaint notifications as email, in addition to any Amazon SNS topic publishing otherwise specified. false specifies that Amazon SES will publish bounce and complaint notifications only through Amazon SNS. This value can only be set to false when Amazon SNS topics are set for both Bounce and Complaint notification types.

Parameter identity : The identity for which to set bounce and complaint notification forwarding. Examples: user@example.com, example.com.

Implementation

Future<void> setIdentityFeedbackForwardingEnabled({
  required bool forwardingEnabled,
  required String identity,
}) async {
  ArgumentError.checkNotNull(forwardingEnabled, 'forwardingEnabled');
  ArgumentError.checkNotNull(identity, 'identity');
  final $request = <String, dynamic>{};
  $request['ForwardingEnabled'] = forwardingEnabled;
  $request['Identity'] = identity;
  await _protocol.send(
    $request,
    action: 'SetIdentityFeedbackForwardingEnabled',
    version: '2010-12-01',
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    shape: shapes['SetIdentityFeedbackForwardingEnabledRequest'],
    shapes: shapes,
    resultWrapper: 'SetIdentityFeedbackForwardingEnabledResult',
  );
}