HEX
Server: Apache
System: Linux pdx1-shared-a1-38 6.6.104-grsec-jammy+ #3 SMP Tue Sep 16 00:28:11 UTC 2025 x86_64
User: mmickelson (3396398)
PHP: 8.1.31
Disabled: NONE
Upload Files
File: //usr/share/doc/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.