Skip to content
Docs Try Aspire
Docs Try

AzureEventHubResource

Handle
📦 Aspire.Hosting.Azure.EventHubs v13.2.0
interface AzureEventHubResource
extends IManifestExpressionProvider,
IResource,
IResourceWithConnectionString,
IResourceWithParent,
AzureEventHubsResource]],
IValueProvider,
IValueWithReferences,
IResourceWithAzureFunctionsConfig {
hubName: string;
readonly name: string;
partitionCount: number;
addConsumerGroup(
name: string,
groupName?: string): AzureEventHubConsumerGroupResource;
withProperties(configure: (obj: AzureEventHubResource) => Promise<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) => Promise<void>): AzureEventHubResource
configure (obj: AzureEventHubResource) => Promise<void>
AzureEventHubResource