anchor.diff:  password within a tuple:
   
   [source,python]
  -----------------------------
  +----
   from elasticsearch import Elasticsearch
   
   # Adds the HTTP header 'Authorization: Basic <base64 username:password>'
   es = Elasticsearch(
  +    "https://localhost:9200",
  +    ca_certs="/path/to/http_ca.crt",
       basic_auth=("username", "password")
   )
  -----------------------------
  +----
   
   
   [discrete]
  
positive.code: or via the per-request `.options()` method:
  
  [source,python]
  ----------------------------
  from elasticsearch import Elasticsearch
  
  # Authenticate from the constructor
  es = Elasticsearch(
      "http://localhost:9200",
      basic_auth=("username", "password")
  )
  
  
negative.code: ==== GCP Cloud Functions
  
  [source,python]
  ----
  from elasticsearch import Elasticsearch
  
  # Client initialization
  client = Elasticsearch(
      cloud_id="deployment-name:ABCD...",
      api_key=...
  )
  
  def main(request):
      # Use the client
      client.search(index=..., query={"match_all": {}})
  
  ----
  
  [discrete]
  [[connecting-faas-aws]]
  ==== AWS Lambda
  
  [source,python]
  ----
  from elasticsearch import Elasticsearch
  
  # Client initialization
  client = Elasticsearch(
      cloud_id="deployment-name:ABCD...",
      api_key=...
  )
  
  def main(event, context):
      # Use the client
      client.search(index=..., query={"match_all": {}})
  
  ----
  
  [discrete]
  [[connecting-faas-azure]]
  ==== Azure Functions
  
  [source,python]
  ----
  import azure.functions as func
  from elasticsearch import Elasticsearch
  
  # Client initialization
  client = Elasticsearch(
      cloud_id="deployment-name:ABCD...",
      api_key=...
  )
  
  def main(request: func.HttpRequest) -> func.HttpResponse:
      # Use the client
      client.search(index=..., query={"match_all": {}})
  
  ----
  
  Resources used to assess these recommendations:
  
  