public void ApplicationAutoScalingDeregisterScalableTarget()
        {
            #region to-deregister-a-scalable-target-1470864164895

            var response = client.DeregisterScalableTarget(new DeregisterScalableTargetRequest
            {
                ResourceId        = "service/default/web-app",
                ScalableDimension = "ecs:service:DesiredCount",
                ServiceNamespace  = "ecs"
            });


            #endregion
        }
 private Amazon.ApplicationAutoScaling.Model.DeregisterScalableTargetResponse CallAWSServiceOperation(IAmazonApplicationAutoScaling client, Amazon.ApplicationAutoScaling.Model.DeregisterScalableTargetRequest request)
 {
     Utils.Common.WriteVerboseEndpointMessage(this, client.Config, "Application Auto Scaling", "DeregisterScalableTarget");
     try
     {
         #if DESKTOP
         return(client.DeregisterScalableTarget(request));
         #elif CORECLR
         return(client.DeregisterScalableTargetAsync(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;
     }
 }