verifyDomainDkim method
Returns a set of DKIM tokens for a domain identity. You use the tokens that are generated by this operation to create CNAME records. When Amazon SES detects that you've added these records to the DNS configuration for a domain, you can start sending email from that domain. You can start sending email even if you haven't added the TXT record provided by the VerifyDomainIdentity operation to the DNS configuration for your domain. All email that you send from the domain is authenticated using DKIM.
To create the CNAME records for DKIM authentication, use the following values:
- Name: token._domainkey.example.com
- Type: CNAME
- Value: token.dkim.amazonses.com
You can execute this operation no more than once per second.
Parameter domain
:
The name of the domain to be verified for Easy DKIM signing.
Implementation
Future<VerifyDomainDkimResponse> verifyDomainDkim({
required String domain,
}) async {
ArgumentError.checkNotNull(domain, 'domain');
final $request = <String, dynamic>{};
$request['Domain'] = domain;
final $result = await _protocol.send(
$request,
action: 'VerifyDomainDkim',
version: '2010-12-01',
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
shape: shapes['VerifyDomainDkimRequest'],
shapes: shapes,
resultWrapper: 'VerifyDomainDkimResult',
);
return VerifyDomainDkimResponse.fromXml($result);
}