configureHealthCheck

Specifies the health check settings to use when evaluating the health state of your EC2 instances.

For more information, see Configure Health Checks for Your Load Balancer in the Classic Load Balancers Guide.

Samples


fun main() { 
   //sampleStart 
   // This example specifies the health check settings used to evaluate the health of your backend EC2
// instances.
val resp = elasticLoadBalancingClient.configureHealthCheck {
    loadBalancerName = "my-load-balancer"
    healthCheck = HealthCheck {
        target = "HTTP:80/png"
        interval = 30
        timeout = 3
        unhealthyThreshold = 2
        healthyThreshold = 2
    }
} 
   //sampleEnd
}