public static void SESSetIdentityFeedbackForwardingEnabled() { #region SESSetIdentityFeedbackForwardingEnabled var sesClient = new AmazonSimpleEmailServiceClient(); var request = new SetIdentityFeedbackForwardingEnabledRequest { ForwardingEnabled = true, Identity = "*****@*****.**" }; sesClient.SetIdentityFeedbackForwardingEnabled(request); #endregion }
/// <summary> /// <para>Given an identity (email address or domain), enables or disables whether Amazon SES forwards feedback notifications as email. Feedback /// forwarding may only be disabled when both complaint and bounce topics are set.</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="setIdentityFeedbackForwardingEnabledRequest">Container for the necessary parameters to execute the /// SetIdentityFeedbackForwardingEnabled service method on AmazonSimpleEmailService.</param> /// /// <returns>The response from the SetIdentityFeedbackForwardingEnabled 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 <SetIdentityFeedbackForwardingEnabledResponse> SetIdentityFeedbackForwardingEnabledAsync(SetIdentityFeedbackForwardingEnabledRequest setIdentityFeedbackForwardingEnabledRequest, CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new SetIdentityFeedbackForwardingEnabledRequestMarshaller(); var unmarshaller = SetIdentityFeedbackForwardingEnabledResponseUnmarshaller.GetInstance(); return(Invoke <IRequest, SetIdentityFeedbackForwardingEnabledRequest, SetIdentityFeedbackForwardingEnabledResponse>(setIdentityFeedbackForwardingEnabledRequest, marshaller, unmarshaller, signer, cancellationToken)); }
internal SetIdentityFeedbackForwardingEnabledResponse SetIdentityFeedbackForwardingEnabled(SetIdentityFeedbackForwardingEnabledRequest request) { var task = SetIdentityFeedbackForwardingEnabledAsync(request); try { return(task.Result); } catch (AggregateException e) { ExceptionDispatchInfo.Capture(e.InnerException).Throw(); return(null); } }
/// <summary> /// Initiates the asynchronous execution of the SetIdentityFeedbackForwardingEnabled operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the SetIdentityFeedbackForwardingEnabled 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 <SetIdentityFeedbackForwardingEnabledResponse> SetIdentityFeedbackForwardingEnabledAsync(SetIdentityFeedbackForwardingEnabledRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new SetIdentityFeedbackForwardingEnabledRequestMarshaller(); var unmarshaller = SetIdentityFeedbackForwardingEnabledResponseUnmarshaller.Instance; return(InvokeAsync <SetIdentityFeedbackForwardingEnabledRequest, SetIdentityFeedbackForwardingEnabledResponse>(request, marshaller, unmarshaller, cancellationToken)); }
internal SetIdentityFeedbackForwardingEnabledResponse SetIdentityFeedbackForwardingEnabled(SetIdentityFeedbackForwardingEnabledRequest request) { var marshaller = new SetIdentityFeedbackForwardingEnabledRequestMarshaller(); var unmarshaller = SetIdentityFeedbackForwardingEnabledResponseUnmarshaller.Instance; return(Invoke <SetIdentityFeedbackForwardingEnabledRequest, SetIdentityFeedbackForwardingEnabledResponse>(request, marshaller, unmarshaller)); }