コード例 #1
0
        internal GetIdentityDkimAttributesResponse GetIdentityDkimAttributes(GetIdentityDkimAttributesRequest request)
        {
            var marshaller   = new GetIdentityDkimAttributesRequestMarshaller();
            var unmarshaller = GetIdentityDkimAttributesResponseUnmarshaller.Instance;

            return(Invoke <GetIdentityDkimAttributesRequest, GetIdentityDkimAttributesResponse>(request, marshaller, unmarshaller));
        }
コード例 #2
0
        internal GetIdentityDkimAttributesResponse GetIdentityDkimAttributes(GetIdentityDkimAttributesRequest request)
        {
            var task = GetIdentityDkimAttributesAsync(request);

            try
            {
                return(task.Result);
            }
            catch (AggregateException e)
            {
                ExceptionDispatchInfo.Capture(e.InnerException).Throw();
                return(null);
            }
        }
コード例 #3
0
        public static void SESGetIdentityDkimAttributes()
        {
            #region SESGetIdentityDkimAttributes
            var sesClient = new AmazonSimpleEmailServiceClient();

            var idsResponse = sesClient.ListIdentities();

            if (idsResponse.Identities.Count > 0)
            {
                var request = new GetIdentityDkimAttributesRequest
                {
                    Identities = idsResponse.Identities
                };

                var response = sesClient.GetIdentityDkimAttributes(request);

                foreach (var attr in response.DkimAttributes)
                {
                    Console.WriteLine(attr.Key);
                    Console.WriteLine("  DKIM Enabled: " + attr.Value.DkimEnabled);
                    Console.WriteLine("  DKIM Verification Status: " +
                                      attr.Value.DkimVerificationStatus.Value);

                    if (attr.Value.DkimTokens.Count > 0)
                    {
                        Console.WriteLine("  DKIM Tokens: ");

                        foreach (var token in attr.Value.DkimTokens)
                        {
                            Console.WriteLine("    " + token);
                        }
                    }

                    Console.WriteLine();
                }
            }
            ;
            #endregion

            Console.ReadLine();
        }
コード例 #4
0
        /// <summary>
        /// <para>Returns the current status of Easy DKIM signing for an entity. For domain name identities, this action also returns the DKIM tokens
        /// that are required for Easy DKIM signing, and whether Amazon SES has successfully verified that these tokens have been published.</para>
        /// <para>This action takes a list of identities as input and returns the following information for each:</para>
        /// <ul>
        /// <li>Whether Easy DKIM signing is enabled or disabled.</li>
        /// <li>A set of DKIM tokens that represent the identity. If the identity is an email address, the tokens represent the domain of that
        /// address.</li>
        /// <li>Whether Amazon SES has successfully verified the DKIM tokens published in the domain's DNS. This information is only returned for
        /// domain name identities, not for email addresses.</li>
        ///
        /// </ul>
        /// <para>This action is throttled at one request per second.</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="getIdentityDkimAttributesRequest">Container for the necessary parameters to execute the GetIdentityDkimAttributes service
        /// method on AmazonSimpleEmailService.</param>
        ///
        /// <returns>The response from the GetIdentityDkimAttributes 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 <GetIdentityDkimAttributesResponse> GetIdentityDkimAttributesAsync(GetIdentityDkimAttributesRequest getIdentityDkimAttributesRequest, CancellationToken cancellationToken = default(CancellationToken))
        {
            var marshaller   = new GetIdentityDkimAttributesRequestMarshaller();
            var unmarshaller = GetIdentityDkimAttributesResponseUnmarshaller.GetInstance();

            return(Invoke <IRequest, GetIdentityDkimAttributesRequest, GetIdentityDkimAttributesResponse>(getIdentityDkimAttributesRequest, marshaller, unmarshaller, signer, cancellationToken));
        }
コード例 #5
0
        /// <summary>
        /// Initiates the asynchronous execution of the GetIdentityDkimAttributes operation.
        /// </summary>
        ///
        /// <param name="request">Container for the necessary parameters to execute the GetIdentityDkimAttributes 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 <GetIdentityDkimAttributesResponse> GetIdentityDkimAttributesAsync(GetIdentityDkimAttributesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
        {
            var marshaller   = new GetIdentityDkimAttributesRequestMarshaller();
            var unmarshaller = GetIdentityDkimAttributesResponseUnmarshaller.Instance;

            return(InvokeAsync <GetIdentityDkimAttributesRequest, GetIdentityDkimAttributesResponse>(request, marshaller,
                                                                                                     unmarshaller, cancellationToken));
        }