Creates one or more listeners on a LoadBalancer for the specified port. If a listener with the given port does not already exist, it will be created; otherwise, the properties of the new listener must match the properties of the existing listener.
Access
public
Parameters
Parameter |
Type |
Required |
Description |
---|---|---|---|
|
Required |
The name of the new LoadBalancer. The name must be unique within your AWS account. |
|
|
Required |
A list of
|
|
|
Optional |
An associative array of parameters that can have the following keys:
|
Returns
Type |
Description |
---|---|
A |
Examples
Create a new load balancer listener.
$elb = new AmazonELB(); $response = $elb->create_load_balancer_listeners('my-load-balancer', array( array( 'Protocol' => 'HTTP', 'LoadBalancerPort' => 1024, 'InstancePort' => 65533 ) )); // 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