set_load_balancer_policies_for_backend_server ( $load_balancer_name, $instance_port, $policy_names, $opt )

Replaces the current set of policies associated with a port on which the back-end server is listening with a new set of policies. After the policies have been created using CreateLoadBalancerPolicy, they can be applied here as a list. At this time, only the back-end server authentication policy type can be applied to the back-end ports; this policy type is composed of multiple public key policies.

Access

public

Parameters

Parameter

Type

Required

Description

$load_balancer_name

string

Required

The mnemonic name associated with the LoadBalancer. This name must be unique within the client AWS account.

$instance_port

integer

Required

The port number associated with the back-end server.

$policy_names

string
array

Required

List of policy names to be set. If the list is empty, then all current polices are removed from the back-end server. Pass a string for a single value, or an indexed array for multiple values.

$opt

array

Optional

An associative array of parameters that can have the following keys:

  • curlopts - array - Optional - A set of values to pass directly into curl_setopt(), where the key is a pre-defined CURLOPT_* constant.
  • returnCurlHandle - boolean - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.

Returns

Type

Description

CFResponse

A CFResponse object containing a parsed HTTP response.

Source

Method defined in services/elb.class.php | Toggle source view (13 lines) | View on GitHub

public function set_load_balancer_policies_for_backend_server($load_balancer_name, $instance_port, $policy_names, $opt = null)
{
    if (!$opt) $opt = array();
    $opt['LoadBalancerName'] = $load_balancer_name;
    $opt['InstancePort'] = $instance_port;
    
    // Required list (non-map)
    $opt = array_merge($opt, CFComplexType::map(array(
        'PolicyNames' => (is_array($policy_names) ? $policy_names : array($policy_names))
    ), 'member'));

    return $this->authenticate('SetLoadBalancerPoliciesForBackendServer', $opt);
}

Copyright © 2010–2013 Amazon Web Services, LLC


Feedback