Skip to content
Docs Try Aspire

withDataVolume

Function
📦 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

Applies to

This function is an extension method on the following types: