Enables the client to define an application healthcheck for the instances.
Access
public
Parameters
Parameter |
Type |
Required |
Description |
|---|---|---|---|
|
|
Required |
The mnemonic name associated with the LoadBalancer. This name must be unique within the client AWS account. |
|
|
|
Required |
A structure containing the configuration information for the new healthcheck.
|
|
|
|
Optional |
An associative array of parameters that can have the following keys:
|
Returns
Type |
Description |
|---|---|
|
A |
Examples
Configure how the health of a load balancer is defined.
$elb = new AmazonELB();
$response = $elb->configure_health_check('my-load-balancer', array(
array( // Healthcheck #1
'HealthyThreshold' => 3,
'Interval' => 30,
'Target' => 'TCP:5000',
'Timeout' => 5,
'UnhealthyThreshold' => 5
)
));
// Success?
var_dump($response->isOK());
Result:
bool(true)
Related Methods
Source
Method defined in services/elb.class.php | Toggle source view (12 lines) | View on GitHub

