> For the complete documentation index, see [llms.txt](https://vostok.gitbook.io/configuration/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://vostok.gitbook.io/configuration/sources/yaml-sources.md).

# YAML sources

**Location**: [Sources.Yaml module](/configuration/modules/sources.yaml.md).

[**YamlStringSource**](https://github.com/vostok/configuration.sources.yaml/blob/master/Vostok.Configuration.Sources.Yaml/YamlStringSource.cs) parses well-formed YAML documents from in-memory strings and supports manual external updates:

```
var source = new YamlStringSource("<yaml content>")

source.Push("<yaml content>") // update with new content
```

[**YamlFileSource**](https://github.com/vostok/configuration.sources.yaml/blob/master/Vostok.Configuration.Sources.Yaml/YamlFileSource.cs) parses YAML files and automatically watches for changes:

```
var source = new YamlFileSource("settings/config.yml");
```

A file that does not exist simply leads to a `null` [node](/configuration/concepts-and-basics/settings-nodes.md), which implies default settings values unless something is [explicitly required](/configuration/basic-scenarios/make-settings-required.md).

### Related pages

{% content-ref url="/pages/-M6UQMklC2EtQ\_nAUDjI" %}
[Configuration sources](/configuration/concepts-and-basics/configuration-sources.md)
{% endcontent-ref %}
