putEmailIdentityDkimSigningAttributes method
Future<PutEmailIdentityDkimSigningAttributesResponse>
putEmailIdentityDkimSigningAttributes({
- required String emailIdentity,
- required DkimSigningAttributesOrigin signingAttributesOrigin,
- DkimSigningAttributes? signingAttributes,
Used to configure or change the DKIM authentication settings for an email domain identity. You can use this operation to do any of the following:
- Update the signing attributes for an identity that uses Bring Your Own DKIM (BYODKIM).
- Change from using no DKIM authentication to using Easy DKIM.
- Change from using no DKIM authentication to using BYODKIM.
- Change from using Easy DKIM to using BYODKIM.
- Change from using BYODKIM to using Easy DKIM.
May throw NotFoundException. May throw TooManyRequestsException. May throw BadRequestException.
Parameter emailIdentity :
The email identity that you want to configure DKIM for.
Parameter signingAttributesOrigin :
The method that you want to use to configure DKIM for the identity. There
are two possible values:
-
AWS_SES– Configure DKIM for the identity by using Easy DKIM. -
EXTERNAL– Configure DKIM for the identity by using Bring Your Own DKIM (BYODKIM).
Parameter signingAttributes :
An object that contains information about the private key and selector
that you want to use to configure DKIM for the identity. This object is
only required if you want to configure Bring Your Own DKIM (BYODKIM) for
the identity.
Implementation
Future<PutEmailIdentityDkimSigningAttributesResponse>
putEmailIdentityDkimSigningAttributes({
required String emailIdentity,
required DkimSigningAttributesOrigin signingAttributesOrigin,
DkimSigningAttributes? signingAttributes,
}) async {
ArgumentError.checkNotNull(emailIdentity, 'emailIdentity');
_s.validateStringLength(
'emailIdentity',
emailIdentity,
1,
1152921504606846976,
isRequired: true,
);
ArgumentError.checkNotNull(
signingAttributesOrigin, 'signingAttributesOrigin');
final $payload = <String, dynamic>{
'SigningAttributesOrigin': signingAttributesOrigin.toValue(),
if (signingAttributes != null) 'SigningAttributes': signingAttributes,
};
final response = await _protocol.send(
payload: $payload,
method: 'PUT',
requestUri:
'/v1/email/identities/${Uri.encodeComponent(emailIdentity)}/dkim/signing',
exceptionFnMap: _exceptionFns,
);
return PutEmailIdentityDkimSigningAttributesResponse.fromJson(response);
}