Skip to content
DocsTry Aspire
DocsTry

AzureEventHubResource

Handle
📦 Aspire.Hosting.Azure.EventHubs v13.4.0
interface AzureEventHubResource
extends IExpressionValue,
IManifestExpressionProvider,
IResource,
IResourceWithConnectionString,
IResourceWithParent,
AzureEventHubsResource]],
IValueProvider,
IValueWithReferences,
IResourceWithAzureFunctionsConfig {
readonly connectionStringExpression: ReferenceExpression;
hubName: string;
readonly parent: AzureEventHubsResource;
partitionCount: number;
addConsumerGroup(
name: string,
groupName?: string): AzureEventHubConsumerGroupResource;
withProperties(configure: (obj: AzureEventHubResource) => Promise<void>): AzureEventHubResource;
}

Properties

propertyconnectionStringExpressionReferenceExpressionget
Gets the connection string expression for the Azure Event Hub.
propertyhubNamestringget · set
The event hub name.
propertyparentAzureEventHubsResourceget
Gets the parent Azure Event Hubs resource.
propertypartitionCountnumberget · set
Number of partitions created for the Event Hub, allowed values are from 1 to 32 partitions.

Methods

methodaddConsumerGroupbuilder
Adds an Azure Event Hub Consumer Group resource to the application model.
addConsumerGroup(
name: string,
groupName?: string): AzureEventHubConsumerGroupResource
namestring
groupNamestringoptional
AzureEventHubConsumerGroupResource
methodwithPropertiesbuilder
Allows setting the properties of an Azure Event Hub resource.
withProperties(configure: (obj: AzureEventHubResource) => Promise<void>): AzureEventHubResource
configure(obj: AzureEventHubResource) => Promise<void>
AzureEventHubResource