# Aspire.Hosting.Azure.EventHubs

- Module: `Aspire.Hosting.Azure.EventHubs`
- Version: `13.3.0`
- Source: [GitHub](https://github.com/microsoft/aspire)
- Functions: `8`
- Types: `5`

## Types

- [AzureEventHubConsumerGroupResource](/reference/api/typescript/aspire.hosting.azure.eventhubs/azureeventhubconsumergroupresource.md) -- `handle` - 0 members
- [AzureEventHubResource](/reference/api/typescript/aspire.hosting.azure.eventhubs/azureeventhubresource.md) -- `handle` - 8 members
- [AzureEventHubsEmulatorResource](/reference/api/typescript/aspire.hosting.azure.eventhubs/azureeventhubsemulatorresource.md) -- `handle` - 2 members
- [AzureEventHubsResource](/reference/api/typescript/aspire.hosting.azure.eventhubs/azureeventhubsresource.md) -- `handle` - 2 members

## Functions

- [addAzureEventHubs](/reference/api/typescript/aspire.hosting.azure.eventhubs/addazureeventhubs.md) -- `method` -- Adds an Azure Event Hubs namespace resource
- [addConsumerGroup](/reference/api/typescript/aspire.hosting.azure.eventhubs/addconsumergroup.md) -- `method` -- Adds an Azure Event Hub consumer group resource
- [addHub](/reference/api/typescript/aspire.hosting.azure.eventhubs/addhub.md) -- `method` -- Adds an Azure Event Hub resource
- [runAsEmulator](/reference/api/typescript/aspire.hosting.azure.eventhubs/runasemulator.md) -- `method` -- Configures the Azure Event Hubs resource to run with the local emulator
- [withConfigurationFile](/reference/api/typescript/aspire.hosting.azure.eventhubs/withconfigurationfile.md) -- `method` -- Sets the emulator configuration file path
- [withHostPort](/reference/api/typescript/aspire.hosting.azure.eventhubs/withhostport.md) -- `method` -- Sets the host port for the Event Hubs emulator endpoint
- [withProperties](/reference/api/typescript/aspire.hosting.azure.eventhubs/withproperties.md) -- `method` -- Configures properties of an Azure Event Hub
- [withRoleAssignments](/reference/api/typescript/aspire.hosting.azure.eventhubs/withroleassignments.md) -- `method` -- Assigns Event Hubs roles to a resource

## Enums

- [AzureEventHubsRole](/reference/api/typescript/aspire.hosting.azure.eventhubs/azureeventhubsrole.md) -- `enum` - 3 values
