putEmailIdentityDkimAttributes method
Used to enable or disable DKIM authentication for an email identity.
May throw BadRequestException.
May throw NotFoundException.
May throw TooManyRequestsException.
Parameter emailIdentity :
The email identity.
Parameter signingEnabled :
Sets the DKIM signing configuration for the identity.
When you set this value true, then the messages that are sent
from the identity are signed using DKIM. If you set this value to
false, your messages are sent without DKIM signing.
Implementation
Future<void> putEmailIdentityDkimAttributes({
required String emailIdentity,
bool? signingEnabled,
}) async {
final $payload = <String, dynamic>{
if (signingEnabled != null) 'SigningEnabled': signingEnabled,
};
final response = await _protocol.send(
payload: $payload,
method: 'PUT',
requestUri:
'/v2/email/identities/${Uri.encodeComponent(emailIdentity)}/dkim',
exceptionFnMap: _exceptionFns,
);
}