Skip to content
Docs Try Aspire
Docs Try

withDataVolume

Method
📦 Aspire.Hosting.Kafka v13.4.0
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): KafkaServerResource
name string optional
isReadOnly boolean optional = False
KafkaServerResource

Applies to

This method applies to the following types: