Skip to content
Docs Try Aspire

AzureEventHubResource

Handle TypeScript
📦 Aspire.Hosting.Azure.EventHubs v13.2.0-preview.1.26159.1
interface AzureEventHubResource
extends IManifestExpressionProvider,
IResource,
IResourceWithConnectionString,
IResourceWithParent,
0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51]],
IValueProvider,
IValueWithReferences,
IResourceWithAzureFunctionsConfig {
hubName: string;
readonly name: string;
partitionCount: number;
addConsumerGroup(
name: string,
groupName?: string): AzureEventHubConsumerGroupResource;
withProperties(configure: (obj: AzureEventHubResource) => void): AzureEventHubResource;
}

Properties

property hubName string get · set
Gets the HubName property
property name string get
Gets the Name property
property partitionCount number get · set
Gets the PartitionCount property

Methods

method addConsumerGroup builder
Adds an Azure Event Hub consumer group resource
addConsumerGroup(
name: string,
groupName?: string): AzureEventHubConsumerGroupResource
name string
groupName string optional
AzureEventHubConsumerGroupResource
method withProperties builder
Configures properties of an Azure Event Hub
withProperties(configure: (obj: AzureEventHubResource) => void): AzureEventHubResource
configure (obj: AzureEventHubResource) => void
AzureEventHubResource