Aspire.Hosting.Azure.EventHubs
Official
📦 Aspire.Hosting.Azure.EventHubsv13.4.08Functions
5Types
5 types and 6 members
Types
Functions
method
addAzureEventHubsbuilderAdds an Azure Event Hubs Namespace resource to the application model. This resource can be used to create Event Hub resources.
addAzureEventHubs(name: string): AzureEventHubsResourcemethod
addConsumerGroupbuilderAdds an Azure Event Hub Consumer Group resource to the application model.
addConsumerGroup(name: string, groupName?: string): AzureEventHubConsumerGroupResourcemethod
addHubbuilderAdds an Azure Event Hubs hub resource to the application model.
addHub(name: string, hubName?: string): AzureEventHubResourcemethod
runAsEmulatorbuilderConfigures the Azure Event Hubs resource to run with the local emulator
runAsEmulator(configureContainer?: (obj: AzureEventHubsEmulatorResource) => Promise<void>): AzureEventHubsResourcemethod
withConfigurationFilebuilderAdds a bind mount for the configuration file of an Azure Event Hubs emulator resource.
withConfigurationFile(path: string): AzureEventHubsEmulatorResourcemethod
withEventHubsRoleAssignmentsbuilderAssigns the specified roles to the given resource, granting it the necessary permissions on the target Azure Event Hubs Namespace resource. This replaces the default role assignments for the resource.
withEventHubsRoleAssignments(target: AzureEventHubsResource, roles: AzureEventHubsRole[]): IResourcemethod
withHostPortbuilderConfigures the host port for the Azure Event Hubs emulator is exposed on instead of using randomly assigned port.
withHostPort(port: number): AzureEventHubsEmulatorResourcemethod
withPropertiesbuilderAllows setting the properties of an Azure Event Hub resource.
withProperties(configure: (obj: AzureEventHubResource) => Promise<void>): AzureEventHubResource