public void NeptuneCreateEventSubscription()
        {
            #region create-event-subscription-00dd0ee6-0e0f-4a38-ae83-e5f2ded5f69a

            var response = client.CreateEventSubscription(new CreateEventSubscriptionRequest
            {
                Enabled         = true,
                EventCategories = new List <string> {
                    "availability"
                },
                SnsTopicArn = "arn:aws:sns:us-east-1:992648334831:MyDemoSNSTopic",
                SourceIds   = new List <string> {
                    "mymysqlinstance"
                },
                SourceType       = "db-instance",
                SubscriptionName = "mymysqleventsubscription"
            });

            EventSubscription eventSubscription = response.EventSubscription;

            #endregion
        }
 private Amazon.Neptune.Model.CreateEventSubscriptionResponse CallAWSServiceOperation(IAmazonNeptune client, Amazon.Neptune.Model.CreateEventSubscriptionRequest request)
 {
     Utils.Common.WriteVerboseEndpointMessage(this, client.Config, "Amazon Neptune", "CreateEventSubscription");
     try
     {
         #if DESKTOP
         return(client.CreateEventSubscription(request));
         #elif CORECLR
         return(client.CreateEventSubscriptionAsync(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;
     }
 }