Skip to content

Set Load Balancer Policies Of Listener

elb_set_load_balancer_policies_of_listener R Documentation

Replaces the current set of policies for the specified load balancer port with the specified set of policies

Description

Replaces the current set of policies for the specified load balancer port with the specified set of policies.

To enable back-end server authentication, use set_load_balancer_policies_for_backend_server.

For more information about setting policies, see Update the SSL Negotiation Configuration, Duration-Based Session Stickiness, and Application-Controlled Session Stickiness in the Classic Load Balancers Guide.

Usage

elb_set_load_balancer_policies_of_listener(LoadBalancerName,
  LoadBalancerPort, PolicyNames)

Arguments

LoadBalancerName

[required] The name of the load balancer.

LoadBalancerPort

[required] The external port of the load balancer.

PolicyNames

[required] The names of the policies. This list must include all policies to be enabled. If you omit a policy that is currently enabled, it is disabled. If the list is empty, all current policies are disabled.

Value

An empty list.

Request syntax

svc$set_load_balancer_policies_of_listener(
  LoadBalancerName = "string",
  LoadBalancerPort = 123,
  PolicyNames = list(
    "string"
  )
)

Examples

## Not run: 
# This example replaces the policies that are currently associated with
# the specified listener.
svc$set_load_balancer_policies_of_listener(
  LoadBalancerName = "my-load-balancer",
  LoadBalancerPort = 80L,
  PolicyNames = list(
    "my-SSLNegotiation-policy"
  )
)

## End(Not run)