Exposed for backward-compatibility only, it’s recommended that you use AllowListPolicy instead.

Augments

  • AllowListPolicy

Constructor

new

WhiteListPolicy

(LoadBalancingPolicy childPolicy, Array<string> allowList)

Creates a new instance of the policy.

Parameters:
Name Type Description
childPolicy LoadBalancingPolicy

the wrapped policy.

allowList Array<string>

The hosts address in the format ipAddress:port. Only hosts from this list may get connected to (whether they will get connected to or not depends on the child policy).