setIdentityDkimEnabled method

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

Enables or disables Easy DKIM signing of email sent from an identity. If Easy DKIM signing is enabled for a domain, then Amazon SES uses DKIM to sign all email that it sends from addresses on that domain. If Easy DKIM signing is enabled for an email address, then Amazon SES uses DKIM to sign all email it sends from that address. You can enable DKIM signing for an identity at any time after you start the verification process for the identity, even if the verification process isn't complete.

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

For more information about Easy DKIM signing, go to the Amazon SES Developer Guide.

Parameter dkimEnabled : Sets whether DKIM signing is enabled for an identity. Set to true to enable DKIM signing for this identity; false to disable it.

Parameter identity : The identity for which DKIM signing should be enabled or disabled.

Implementation

Future<void> setIdentityDkimEnabled({
  required bool dkimEnabled,
  required String identity,
}) async {
  ArgumentError.checkNotNull(dkimEnabled, 'dkimEnabled');
  ArgumentError.checkNotNull(identity, 'identity');
  final $request = <String, dynamic>{};
  $request['DkimEnabled'] = dkimEnabled;
  $request['Identity'] = identity;
  await _protocol.send(
    $request,
    action: 'SetIdentityDkimEnabled',
    version: '2010-12-01',
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    shape: shapes['SetIdentityDkimEnabledRequest'],
    shapes: shapes,
    resultWrapper: 'SetIdentityDkimEnabledResult',
  );
}