# Aspire.Hosting.Nats

- Module: `Aspire.Hosting.Nats`
- Version: `17.0.0`
- Import path: `apphost/modules/aspire`
- Source: [GitHub](https://github.com/microsoft/aspire/tree/bcfa151cdca6d0a573f22d5d9c23f9c727cb3b2f)
- Functions: `4`
- Types: `1`

## Handles

- [NatsServerResource](/reference/api/go/aspire.hosting.nats/natsserverresource.md) -- `handle` - 12 members -- A resource that represents a NATS server container.

## Functions

- [AddNats](/reference/api/go/aspire.hosting.nats/addnats.md) -- `method` - on `DistributedApplicationBuilder` -- Adds a NATS server resource to the application model.
- [WithDataBindMount](/reference/api/go/aspire.hosting.nats/withdatabindmount.md) -- `method` - on `NatsServerResource` -- Adds a bind mount for the data folder to a NATS container resource.
- [WithDataVolume](/reference/api/go/aspire.hosting.nats/withdatavolume.md) -- `method` - on `NatsServerResource` -- Adds a named volume for the data folder to a NATS container resource.
- [WithJetStream](/reference/api/go/aspire.hosting.nats/withjetstream.md) -- `method` - on `NatsServerResource` -- Adds JetStream support to the NATS server resource.
