withDataVolume
Function
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): NatsServerResourceParameters
name string optional isReadOnly boolean optional = False Returns
NatsServerResource Applies to
This function is an extension method on the following types: