Skip to content
DocsTry Aspire
DocsTry

KafkaServerResource.withDataVolume

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

Signature

methodwithDataVolumebuilder
Adds a named volume for the data folder to a Kafka container resource.
withDataVolume(
name?: string,
isReadOnly?: boolean): KafkaServerResource
namestringoptional
isReadOnlybooleanoptional= False
KafkaServerResource

Defined on

This method is defined on the following type: