Default Logstash Encryption to Elastic Cloud?

Will Logstash automatically encrypt traffic to an elastic cloud instance if the cloud endpoint it specified as https? Upon packet inspection it seems that it is but I want to verify.

This is my pipefile config:

output{
  elasticsearch{
      hosts => ["https://XYXYXYXYXYXYXYXY:9243"]
      user => "XXXXX"
      password => "YYYYYYYYY"
      index => "ZYZYZYZYZY"
      ilm_rollover_alias => "ZYZYZYZYZY"
      ilm_pattern => "000001"
      ilm_policy => "XYXYXYXYXY"
  }
}

Thanks!

Yes, if you specify https then it will use TLS.