# 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/2d325b13709752ba6d9a943635c5e2940a2530c0)

## 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
  ```
