Select your cookie preferences

We use essential cookies and similar tools that are necessary to provide our site and services. We use performance cookies to collect anonymous statistics, so we can understand how customers use our site and make improvements. Essential cookies cannot be deactivated, but you can choose “Customize” or “Decline” to decline performance cookies.

If you agree, AWS and approved third parties will also use cookies to provide useful site features, remember your preferences, and display relevant content, including relevant advertising. To accept or decline all non-essential cookies, choose “Accept” or “Decline.” To make more detailed choices, choose “Customize.”

ConfigureHealthCheck - Elastic Load Balancing

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 User Guide for Classic Load Balancers.

Request Parameters

For information about the parameters that are common to all actions, see Common Parameters.

HealthCheck

The configuration information.

Type: HealthCheck object

Required: Yes

LoadBalancerName

The name of the load balancer.

Type: String

Required: Yes

Response Elements

The following element is returned by the service.

HealthCheck

The updated health check.

Type: HealthCheck object

Errors

For information about the errors that are common to all actions, see Common Errors.

LoadBalancerNotFound

The specified load balancer does not exist.

HTTP Status Code: 400

Examples

Configure health check settings

This example specifies the health check settings used to evaluate the health of your EC2 instances.

Sample Request

https://elasticloadbalancing.amazonaws.com/?Action=ConfigureHealthCheck &LoadBalancerName=my-loadbalancer &HealthCheck.HealthyThreshold=2 &HealthCheck.UnhealthyThreshold=2 &HealthCheck.Target=HTTP:80/ping &HealthCheck.Interval=30 &HealthCheck.Timeout=3 &Version=2012-06-01 &AUTHPARAMS

Sample Response

<ConfigureHealthCheckResponse xmlns="http://elasticloadbalancing.amazonaws.com/doc/2012-06-01/"> <ConfigureHealthCheckResult> <HealthCheck> <Interval>30</Interval> <Target>HTTP:80/ping</Target> <HealthyThreshold>2</HealthyThreshold> <Timeout>3</Timeout> <UnhealthyThreshold>2</UnhealthyThreshold> </HealthCheck> </ConfigureHealthCheckResult> <ResponseMetadata> <RequestId>83c88b9d-12b7-11e3-8b82-87b12EXAMPLE</RequestId> </ResponseMetadata> </ConfigureHealthCheckResponse>

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following:

PrivacySite termsCookie preferences
© 2025, Amazon Web Services, Inc. or its affiliates. All rights reserved.