internal SetIdentityNotificationTopicResponse SetIdentityNotificationTopic(SetIdentityNotificationTopicRequest request) { var marshaller = new SetIdentityNotificationTopicRequestMarshaller(); var unmarshaller = SetIdentityNotificationTopicResponseUnmarshaller.Instance; return(Invoke <SetIdentityNotificationTopicRequest, SetIdentityNotificationTopicResponse>(request, marshaller, unmarshaller)); }
internal SetIdentityNotificationTopicResponse SetIdentityNotificationTopic(SetIdentityNotificationTopicRequest request) { var task = SetIdentityNotificationTopicAsync(request); try { return(task.Result); } catch (AggregateException e) { ExceptionDispatchInfo.Capture(e.InnerException).Throw(); return(null); } }
public static void SESSetIdentityNotificationTopic() { #region SESSetIdentityNotificationTopic var sesClient = new AmazonSimpleEmailServiceClient(); var bounceRequest = new SetIdentityNotificationTopicRequest { Identity = "*****@*****.**", NotificationType = NotificationType.Bounce, SnsTopic = "arn:aws:sns:us-east-1:80398EXAMPLE:CodingTestResults" }; sesClient.SetIdentityNotificationTopic(bounceRequest); var complaintRequest = new SetIdentityNotificationTopicRequest { Identity = "*****@*****.**", NotificationType = NotificationType.Complaint, SnsTopic = "arn:aws:sns:us-east-1:80398EXAMPLE:CodingTestResults" }; sesClient.SetIdentityNotificationTopic(complaintRequest); #endregion }
/// <summary> /// <para>Given an identity (email address or domain), sets the Amazon SNS topic to which Amazon SES will publish bounce and complaint /// notifications for emails sent with that identity as the <c>Source</c> . /// Publishing to topics may only be disabled when feedback forwarding is enabled.</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="setIdentityNotificationTopicRequest">Container for the necessary parameters to execute the SetIdentityNotificationTopic service /// method on AmazonSimpleEmailService.</param> /// /// <returns>The response from the SetIdentityNotificationTopic 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 <SetIdentityNotificationTopicResponse> SetIdentityNotificationTopicAsync(SetIdentityNotificationTopicRequest setIdentityNotificationTopicRequest, CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new SetIdentityNotificationTopicRequestMarshaller(); var unmarshaller = SetIdentityNotificationTopicResponseUnmarshaller.GetInstance(); return(Invoke <IRequest, SetIdentityNotificationTopicRequest, SetIdentityNotificationTopicResponse>(setIdentityNotificationTopicRequest, marshaller, unmarshaller, signer, cancellationToken)); }
/// <summary> /// Initiates the asynchronous execution of the SetIdentityNotificationTopic operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the SetIdentityNotificationTopic 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 <SetIdentityNotificationTopicResponse> SetIdentityNotificationTopicAsync(SetIdentityNotificationTopicRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new SetIdentityNotificationTopicRequestMarshaller(); var unmarshaller = SetIdentityNotificationTopicResponseUnmarshaller.Instance; return(InvokeAsync <SetIdentityNotificationTopicRequest, SetIdentityNotificationTopicResponse>(request, marshaller, unmarshaller, cancellationToken)); }