public static void SESGetIdentityNotificationAttributes()
        {
            #region SESGetIdentityNotificationAttributes
            var sesClient   = new AmazonSimpleEmailServiceClient();
            var idsResponse = sesClient.ListIdentities();

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

                var response = sesClient.GetIdentityNotificationAttributes(request);

                foreach (var attr in response.NotificationAttributes)
                {
                    Console.WriteLine(attr.Key);
                    Console.WriteLine("  Bounce Topic: " + attr.Value.BounceTopic);
                    Console.WriteLine("  Complaint Topic: " + attr.Value.ComplaintTopic);
                    Console.WriteLine("  Forwarding Enabled: " +
                                      attr.Value.ForwardingEnabled);
                    Console.WriteLine();
                }
            }
            #endregion

            Console.ReadLine();
        }
Esempio n. 2
0
        /// <summary>
        /// <para>Given a list of verified identities (email addresses and/or domains), returns a structure describing identity notification
        /// attributes.</para> <para>This action is throttled at one request per second.</para> <para>For more information about feedback notification,
        /// see the <a href="http://docs.aws.amazon.com/ses/latest/DeveloperGuide/bounce-complaint-notifications.html">Amazon SES Developer Guide</a>
        /// .</para>
        /// </summary>
        ///
        /// <param name="getIdentityNotificationAttributesRequest">Container for the necessary parameters to execute the
        /// GetIdentityNotificationAttributes service method on AmazonSimpleEmailService.</param>
        ///
        /// <returns>The response from the GetIdentityNotificationAttributes 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 <GetIdentityNotificationAttributesResponse> GetIdentityNotificationAttributesAsync(GetIdentityNotificationAttributesRequest getIdentityNotificationAttributesRequest, CancellationToken cancellationToken = default(CancellationToken))
        {
            var marshaller   = new GetIdentityNotificationAttributesRequestMarshaller();
            var unmarshaller = GetIdentityNotificationAttributesResponseUnmarshaller.GetInstance();

            return(Invoke <IRequest, GetIdentityNotificationAttributesRequest, GetIdentityNotificationAttributesResponse>(getIdentityNotificationAttributesRequest, marshaller, unmarshaller, signer, cancellationToken));
        }
Esempio n. 3
0
        internal GetIdentityNotificationAttributesResponse GetIdentityNotificationAttributes(GetIdentityNotificationAttributesRequest request)
        {
            var task = GetIdentityNotificationAttributesAsync(request);

            try
            {
                return(task.Result);
            }
            catch (AggregateException e)
            {
                ExceptionDispatchInfo.Capture(e.InnerException).Throw();
                return(null);
            }
        }
Esempio n. 4
0
        /// <summary>
        /// Initiates the asynchronous execution of the GetIdentityNotificationAttributes operation.
        /// </summary>
        ///
        /// <param name="request">Container for the necessary parameters to execute the GetIdentityNotificationAttributes 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 <GetIdentityNotificationAttributesResponse> GetIdentityNotificationAttributesAsync(GetIdentityNotificationAttributesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
        {
            var marshaller   = new GetIdentityNotificationAttributesRequestMarshaller();
            var unmarshaller = GetIdentityNotificationAttributesResponseUnmarshaller.Instance;

            return(InvokeAsync <GetIdentityNotificationAttributesRequest, GetIdentityNotificationAttributesResponse>(request, marshaller,
                                                                                                                     unmarshaller, cancellationToken));
        }
Esempio n. 5
0
        internal GetIdentityNotificationAttributesResponse GetIdentityNotificationAttributes(GetIdentityNotificationAttributesRequest request)
        {
            var marshaller   = new GetIdentityNotificationAttributesRequestMarshaller();
            var unmarshaller = GetIdentityNotificationAttributesResponseUnmarshaller.Instance;

            return(Invoke <GetIdentityNotificationAttributesRequest, GetIdentityNotificationAttributesResponse>(request, marshaller, unmarshaller));
        }