# AzureEventHubsEmulatorResource

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

## Definition

```go
type AzureEventHubsEmulatorResource interface {
    IComputeResource
    Resource
    ResourceWithArgs
    ResourceWithEndpoints
    ResourceWithEnvironment
    ResourceWithWaitSupport
}
```

## Embeds

- `IComputeResource`
- `Resource`
- `ResourceWithArgs`
- `ResourceWithEndpoints`
- `ResourceWithEnvironment`
- `ResourceWithWaitSupport`

## Methods

- [WithConfigurationFile](/reference/api/go/aspire.hosting.azure.eventhubs/azureeventhubsemulatorresource/withconfigurationfile.md) -- `method` -- Adds a bind mount for the configuration file of an Azure Event Hubs emulator resource.
  ```go
  WithConfigurationFile(path string) AzureEventHubsEmulatorResource
  ```
- [WithHostPort](/reference/api/go/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.
  ```go
  WithHostPort(port *float64) AzureEventHubsEmulatorResource
  ```
