public void ApplicationAutoScalingDeleteScalingPolicy()
        {
            #region to-delete-a-scaling-policy-1470863892689

            var response = client.DeleteScalingPolicy(new DeleteScalingPolicyRequest
            {
                PolicyName        = "web-app-cpu-lt-25",
                ResourceId        = "service/default/web-app",
                ScalableDimension = "ecs:service:DesiredCount",
                ServiceNamespace  = "ecs"
            });


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