Esempio n. 1
0
        public void ElasticLoadBalancingConfigureHealthCheck()
        {
            #region elb-configure-health-check-1

            var client   = new AmazonElasticLoadBalancingClient();
            var response = client.ConfigureHealthCheck(new ConfigureHealthCheckRequest
            {
                HealthCheck = new HealthCheck {
                    HealthyThreshold   = 2,
                    Interval           = 30,
                    Target             = "HTTP:80/png",
                    Timeout            = 3,
                    UnhealthyThreshold = 2
                },
                LoadBalancerName = "my-load-balancer"
            });

            HealthCheck healthCheck = response.HealthCheck;

            #endregion
        }