Skip to content
Docs Try Aspire
Docs Try

withDataVolume

Method
📦 Aspire.Hosting.Nats v13.3.0
interface NatsServerResource {
// ... omitted for brevity
withDataVolume(
name?: string,
isReadOnly?: boolean): NatsServerResource;
}

Signature

method withDataVolume builder
Adds a persistent data volume to the NATS resource.
withDataVolume(
name?: string,
isReadOnly?: boolean): NatsServerResource
name string optional
isReadOnly boolean optional = False
NatsServerResource

Applies to

This method applies to the following types: