# AzureEventHubsEmulatorResource

- Module: [Aspire.Hosting.Azure.EventHubs](/reference/api/typescript/aspire.hosting.azure.eventhubs.md)
- Version: `13.4.0`
- Kind: `handle`
- Source: [GitHub](https://github.com/microsoft/aspire)

## Definition

```typescript
interface AzureEventHubsEmulatorResource
  extends IComputeResource,
    IResource,
    IResourceWithArgs,
    IResourceWithEndpoints,
    IResourceWithEnvironment,
    IResourceWithProbes,
    IResourceWithWaitSupport {
  withConfigurationFile(path: string): AzureEventHubsEmulatorResource;
  withHostPort(port: number): AzureEventHubsEmulatorResource;
}
```

## Methods

- [withConfigurationFile](/reference/api/typescript/aspire.hosting.azure.eventhubs/azureeventhubsemulatorresource/withconfigurationfile.md) -- `method` -- Adds a bind mount for the configuration file of an Azure Event Hubs emulator resource.
    ```typescript
  withConfigurationFile(path: string): AzureEventHubsEmulatorResource
  ```
- [withHostPort](/reference/api/typescript/aspire.hosting.azure.eventhubs/azureeventhubsemulatorresource/withhostport.md) -- `method` -- Configures the host port for the Azure Event Hubs emulator is exposed on instead of using randomly assigned port.
    ```typescript
  withHostPort(port: number): AzureEventHubsEmulatorResource
  ```
