HEX
Server: LiteSpeed
System: Linux s3604.bom1.stableserver.net 4.18.0-513.11.1.lve.el8.x86_64 #1 SMP Thu Jan 18 16:21:02 UTC 2024 x86_64
User: dmstechonline (1480)
PHP: 7.4.33
Disabled: NONE
Upload Files
File: //lib/python3.6/site-packages/awscli/examples/elb/set-load-balancer-policies-for-backend-server.rst
**To replace the policies associated with a port for a backend instance**

This example replaces the policies that are currently associated with the specified port.

Command::

  aws elb set-load-balancer-policies-for-backend-server --load-balancer-name my-load-balancer --instance-port 80 --policy-names my-ProxyProtocol-policy


**To remove all policies that are currently associated with a port on your backend instance**

This example removes all policies associated with the specified port.

Command::

  aws elb set-load-balancer-policies-for-backend-server --load-balancer-name my-load-balancer --instance-port 80 --policy-names []


To confirm that the policies are removed, use the ``describe-load-balancer-policies`` command.