paws.networking (version 0.1.6)

elb_set_load_balancer_policies_for_backend_server: Replaces the set of policies associated with the specified port on which the EC2 instance is listening with a new set of policies

Description

Replaces the set of policies associated with the specified port on which the EC2 instance is listening with a new set of policies. At this time, only the back-end server authentication policy type can be applied to the instance ports; this policy type is composed of multiple public key policies.

Usage

elb_set_load_balancer_policies_for_backend_server(LoadBalancerName,
  InstancePort, PolicyNames)

Arguments

LoadBalancerName

[required] The name of the load balancer.

InstancePort

[required] The port number associated with the EC2 instance.

PolicyNames

[required] The names of the policies. If the list is empty, then all current polices are removed from the EC2 instance.

Request syntax

svc$set_load_balancer_policies_for_backend_server(
  LoadBalancerName = "string",
  InstancePort = 123,
  PolicyNames = list(
    "string"
  )
)

Details

Each time you use SetLoadBalancerPoliciesForBackendServer to enable the policies, use the PolicyNames parameter to list the policies that you want to enable.

You can use DescribeLoadBalancers or DescribeLoadBalancerPolicies to verify that the policy is associated with the EC2 instance.

For more information about enabling back-end instance authentication, see Configure Back-end Instance Authentication in the Classic Load Balancers Guide. For more information about Proxy Protocol, see Configure Proxy Protocol Support in the Classic Load Balancers Guide.

Examples

Run this code
# NOT RUN {
# This example replaces the policies that are currently associated with
# the specified port.
# }
# NOT RUN {
svc$set_load_balancer_policies_for_backend_server(
  InstancePort = 80L,
  LoadBalancerName = "my-load-balancer",
  PolicyNames = list(
    "my-ProxyProtocol-policy"
  )
)
# }
# NOT RUN {
# }

Run the code above in your browser using DataCamp Workspace