AzureEventHubsResource

Handle
📦 Aspire.Hosting.Azure.EventHubs v17.0.0
interface AzureEventHubsResource
extends IAzureResource,
IExpressionValue,
IManifestExpressionProvider,
IResource,
IResourceWithConnectionString,
IResourceWithEndpoints,
IResourceWithParameters,
IValueProvider,
IValueWithReferences,
IAzureNspAssociationTarget,
IAzurePrivateEndpointTarget,
IResourceWithAzureFunctionsConfig {
addHub(
name: string,
hubName?: string): AzureEventHubResource;
runAsEmulator(configureContainer?: (obj: AzureEventHubsEmulatorResource) => Promise<void>): AzureEventHubsResource;
}

Methods

methodaddHubbuilder
Adds an Azure Event Hubs hub resource to the application model.
addHub(
name: string,
hubName?: string): AzureEventHubResource
namestringThe name of the Event Hub resource.
hubNamestringoptionalThe name of the Event Hub. If not provided, this defaults to the same value as `name`.
AzureEventHubResource
methodrunAsEmulatorbuilder
Configures the Azure Event Hubs resource to run with the local emulator
runAsEmulator(configureContainer?: (obj: AzureEventHubsEmulatorResource) => Promise<void>): AzureEventHubsResource
configureContainer(obj: AzureEventHubsEmulatorResource) => Promise<void>optionalCallback that exposes underlying container used for emulation to allow for customization.
AzureEventHubsResource