docstr: Converts this config to yaml file at given path object.
  Note that this method will not return the config object.
docstr_tok: ["Converts","this","config","to","yaml","file","at","given","path","object",".","Note","that","this","method","will","not","return","the","config","object","."]
code: def to_yaml_file(
      self, cloud_config: Path = Provide[BentoMLContainer.cloud_config]
  ) -> None:
      """Converts this config to yaml file at given path object.
      Note that this method will not return the config object.
      """
      with cloud_config.open("w") as f:
          yaml.dump(bentoml_cattr.unstructure(self), stream=f)
  
imports: from __future__ import annotations
  import logging
  import typing
  import attr
  import yaml
  from simple_di import Provide
  from simple_di import inject
  from ...exceptions import CloudRESTApiClientError
  from ..configuration.containers import BentoMLContainer
  from ..utils import bentoml_cattr
  from .client import RestApiClient
label_desc: Use image node_id 4 for calling the CloudClientConfig obj's underlying member method code with example usage: obj.to_yaml_file(cloud_config) without return types