public void RedshiftCreateEventSubscription()
        {
            #region to-create-an-event-subscription-1483132129428

            var response = client.CreateEventSubscription(new CreateEventSubscriptionRequest
            {
                SnsTopicArn      = "arn:aws:sns:us-west-2:123456789101:my-sns-topic",
                SubscriptionName = "mysubscription"
            });


            #endregion
        }
Exemplo n.º 2
0
 private Amazon.Redshift.Model.CreateEventSubscriptionResponse CallAWSServiceOperation(IAmazonRedshift client, Amazon.Redshift.Model.CreateEventSubscriptionRequest request)
 {
     Utils.Common.WriteVerboseEndpointMessage(this, client.Config, "Amazon Redshift", "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;
     }
 }