/// <summary> /// <para>Returns a set of DKIM tokens for a domain. DKIM <i>tokens</i> are character strings that represent your domain's identity. Using these /// tokens, you will need to create DNS CNAME records that point to DKIM public keys hosted by Amazon SES. Amazon Web Services will eventually /// detect that you have updated your DNS records; this detection process may take up to 72 hours. Upon successful detection, Amazon SES will be /// able to DKIM-sign email originating from that domain.</para> <para>This action is throttled at one request per second.</para> <para>To /// enable or disable Easy DKIM signing for a domain, use the <c>SetIdentityDkimEnabled</c> action.</para> <para>For more information about /// creating DNS records using DKIM tokens, go to the <a href="http://docs.aws.amazon.com/ses/latest/DeveloperGuide/easy-dkim-dns-records.html">Amazon SES Developer Guide</a> .</para> /// </summary> /// /// <param name="verifyDomainDkimRequest">Container for the necessary parameters to execute the VerifyDomainDkim service method on /// AmazonSimpleEmailService.</param> /// /// <returns>The response from the VerifyDomainDkim service method, as returned by AmazonSimpleEmailService.</returns> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> public Task <VerifyDomainDkimResponse> VerifyDomainDkimAsync(VerifyDomainDkimRequest verifyDomainDkimRequest, CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new VerifyDomainDkimRequestMarshaller(); var unmarshaller = VerifyDomainDkimResponseUnmarshaller.GetInstance(); return(Invoke <IRequest, VerifyDomainDkimRequest, VerifyDomainDkimResponse>(verifyDomainDkimRequest, marshaller, unmarshaller, signer, cancellationToken)); }
internal VerifyDomainDkimResponse VerifyDomainDkim(VerifyDomainDkimRequest request) { var marshaller = new VerifyDomainDkimRequestMarshaller(); var unmarshaller = VerifyDomainDkimResponseUnmarshaller.Instance; return(Invoke <VerifyDomainDkimRequest, VerifyDomainDkimResponse>(request, marshaller, unmarshaller)); }
/// <summary> /// Initiates the asynchronous execution of the VerifyDomainDkim operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the VerifyDomainDkim operation.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// <returns>The task object representing the asynchronous operation.</returns> public Task <VerifyDomainDkimResponse> VerifyDomainDkimAsync(VerifyDomainDkimRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new VerifyDomainDkimRequestMarshaller(); var unmarshaller = VerifyDomainDkimResponseUnmarshaller.Instance; return(InvokeAsync <VerifyDomainDkimRequest, VerifyDomainDkimResponse>(request, marshaller, unmarshaller, cancellationToken)); }
internal VerifyDomainDkimResponse VerifyDomainDkim(VerifyDomainDkimRequest request) { var task = VerifyDomainDkimAsync(request); try { return(task.Result); } catch (AggregateException e) { ExceptionDispatchInfo.Capture(e.InnerException).Throw(); return(null); } }
public static void SESVerifyDomainDkim() { #region SESVerifyDomainDkim var sesClient = new AmazonSimpleEmailServiceClient(); var request = new VerifyDomainDkimRequest { Domain = "example.com" }; var response = sesClient.VerifyDomainDkim(request); Console.WriteLine("DKIM tokens:"); foreach (var token in response.DkimTokens) { Console.WriteLine(" " + token); } #endregion Console.ReadLine(); }