Skip to content
Docs Try Aspire
Docs Try

KafkaServerResource

Handle
📦 Aspire.Hosting.Kafka v13.3.0
interface KafkaServerResource
extends IComputeResource,
IExpressionValue,
IManifestExpressionProvider,
IResource,
IResourceWithArgs,
IResourceWithConnectionString,
IResourceWithEndpoints,
IResourceWithEnvironment,
IResourceWithProbes,
IResourceWithWaitSupport,
IValueProvider,
IValueWithReferences {
readonly connectionStringExpression: ReferenceExpression;
readonly host: EndpointReferenceExpression;
readonly internalEndpoint: EndpointReference;
readonly port: EndpointReferenceExpression;
readonly primaryEndpoint: EndpointReference;
withDataBindMount(
source: string,
isReadOnly?: boolean): KafkaServerResource;
withDataVolume(
name?: string,
isReadOnly?: boolean): KafkaServerResource;
withKafkaUI(configureContainer?: (obj: KafkaUIContainerResource) => Promise<void>, containerName?: string): KafkaServerResource;
}

Properties

property connectionStringExpression ReferenceExpression get
Gets the ConnectionStringExpression property
property host EndpointReferenceExpression get
Gets the Host property
property internalEndpoint EndpointReference get
Gets the InternalEndpoint property
property port EndpointReferenceExpression get
Gets the Port property
property primaryEndpoint EndpointReference get
Gets the PrimaryEndpoint property

Methods

method withDataBindMount builder
Adds a data bind mount to the Kafka container
withDataBindMount(
source: string,
isReadOnly?: boolean): KafkaServerResource
source string
isReadOnly boolean optional = False
KafkaServerResource
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
method withKafkaUI builder
Adds a Kafka UI container to manage the Kafka resource
withKafkaUI(configureContainer?: (obj: KafkaUIContainerResource) => Promise<void>, containerName?: string): KafkaServerResource
configureContainer (obj: KafkaUIContainerResource) => Promise<void> optional
containerName string optional
KafkaServerResource