public void ElasticBeanstalkAbortEnvironmentUpdate()
        {
            #region to-abort-a-deployment-1456267848227

            var response = client.AbortEnvironmentUpdate(new AbortEnvironmentUpdateRequest
            {
                EnvironmentName = "my-env"
            });


            #endregion
        }
Example #2
0
 private Amazon.ElasticBeanstalk.Model.AbortEnvironmentUpdateResponse CallAWSServiceOperation(IAmazonElasticBeanstalk client, Amazon.ElasticBeanstalk.Model.AbortEnvironmentUpdateRequest request)
 {
     Utils.Common.WriteVerboseEndpointMessage(this, client.Config, "AWS Elastic Beanstalk", "AbortEnvironmentUpdate");
     try
     {
         #if DESKTOP
         return(client.AbortEnvironmentUpdate(request));
         #elif CORECLR
         return(client.AbortEnvironmentUpdateAsync(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;
     }
 }