Logstash cloud.id and proxies/LB

Hello, I'm trying to understand the use of cloud.id in Logstash.

Based on this typical diagram if I configure Logstash to use the cloud.id will hit the LB layer , the proxies, or ES directly?

Thanks

If we're talking from ECE perspective logstash instances will hit deployment through 3 proxy