public void NeptuneDeleteEventSubscription() { #region delete-db-event-subscription-d33567e3-1d5d-48ff-873f-0270453f4a75 var response = client.DeleteEventSubscription(new DeleteEventSubscriptionRequest { SubscriptionName = "myeventsubscription" }); EventSubscription eventSubscription = response.EventSubscription; #endregion }
private Amazon.Neptune.Model.DeleteEventSubscriptionResponse CallAWSServiceOperation(IAmazonNeptune client, Amazon.Neptune.Model.DeleteEventSubscriptionRequest request) { Utils.Common.WriteVerboseEndpointMessage(this, client.Config, "Amazon Neptune", "DeleteEventSubscription"); try { #if DESKTOP return(client.DeleteEventSubscription(request)); #elif CORECLR return(client.DeleteEventSubscriptionAsync(request).GetAwaiter().GetResult()); #else #error "Unknown build edition" #endif } catch (AmazonServiceException exc) { var webException = exc.InnerException as System.Net.WebException; if (webException != null) { throw new Exception(Utils.Common.FormatNameResolutionFailureMessage(client.Config, webException.Message), webException); } throw; } }