Skip to content
Docs Try Aspire

KafkaServerResource.withDataVolume

Method
📦 Aspire.Hosting.Kafka v13.2.0-preview.1.26159.1
interface KafkaServerResource {
// ... omitted for brevity
withDataVolume(
name?: string,
isReadOnly?: boolean): KafkaServerResource;
}

Signature

method withDataVolume builder
Adds a data volume to the Kafka container
withDataVolume(
name?: string,
isReadOnly?: boolean): KafkaServerResource
name string optional
isReadOnly boolean optional = False
KafkaServerResource

Defined on

This method is defined on the following type: