# KafkaUIContainerResource

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

## Definition

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

## Embeds

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

## Methods

- [WithHostPort](/reference/api/go/aspire.hosting.kafka/kafkauicontainerresource/withhostport.md) -- `method` -- Configures the host port that the KafkaUI resource is exposed on instead of using randomly assigned port.
  ```go
  WithHostPort(port *float64) KafkaUIContainerResource
  ```
