Deletes a policy from the LoadBalancer. The specified policy must not be enabled for any listeners.
Access
public
Parameters
Parameter |
Type |
Required |
Description |
---|---|---|---|
|
Required |
The mnemonic name associated with the LoadBalancer. The name must be unique within your AWS account. |
|
|
Required |
The mnemonic name for the policy being deleted. |
|
|
Optional |
An associative array of parameters that can have the following keys:
|
Returns
Type |
Description |
---|---|
A |
Examples
Delete a stickiness policy for a load balancer.
To assign a policy to a load balancer, you must:
- Create a policy using either
create_app_cookie_stickiness_policy()
orcreate_lb_cookie_stickiness_policy()
. - Assign the policy to the load balancer with
set_load_balancer_policies_of_listener()
. - Remove them with
delete_load_balancer_policy()
.
$elb = new AmazonELB(); $response = $elb->delete_load_balancer_policy('my-load-balancer', 'app-cookie-policy'); // Success? var_dump($response->isOK());Result:
bool(true)
Related Methods
Source
Method defined in services/elb.class.php | Toggle source view (8 lines) | View on GitHub