withDataVolume
Method
interface KafkaServerResource { // ... omitted for brevity withDataVolume( name?: string, isReadOnly?: boolean): KafkaServerResource;}Signature
method
withDataVolume builder Adds a named volume for the data folder to a Kafka container resource.
withDataVolume( name?: string, isReadOnly?: boolean): KafkaServerResourceParameters
name string optional isReadOnly boolean optional = False Returns
KafkaServerResource Applies to
This method applies to the following types: