# AzureEventHubsEmulatorResource

- Module: [Aspire.Hosting.Azure.EventHubs](/reference/api/typescript/aspire.hosting.azure.eventhubs.md)
- Version: `13.2.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` -- Sets the emulator configuration file path
    ```typescript
  withConfigurationFile(path: string): AzureEventHubsEmulatorResource
  ```
- [withHostPort](/reference/api/typescript/aspire.hosting.azure.eventhubs/azureeventhubsemulatorresource/withhostport.md) -- `method` -- Sets the host port for the Event Hubs emulator endpoint
    ```typescript
  withHostPort(port: number): AzureEventHubsEmulatorResource
  ```
