# FlociUIContainerResource

- Module: [CommunityToolkit.Aspire.Hosting.Floci](/reference/api/go/communitytoolkit.aspire.hosting.floci.md)
- Version: `13.6.1`
- Kind: `handle`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/tree/d9c2addac6f527ef2e33712d290b84574b455a3b)

Resource for the Floci UI web console container. A single UI instance can attach to any combination of Floci cloud resources (AWS, Azure, GCP) -- one created it via `WithFlociUI` (its `Parent`), and any others are attached via `WithReference`.

## Definition

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

## Embeds

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

## Properties

- `PrimaryEndpoint`: `EndpointReference` `get` -- Gets the http endpoint for the Floci UI resource.

## Methods

- [WithAwsReference](/reference/api/go/communitytoolkit.aspire.hosting.floci/flociuicontainerresource/withawsreference.md) -- `method` -- Attaches an additional Floci AWS resource to a Floci UI console
  ```go
  WithAwsReference(cloud FlociAwsContainerResource) FlociUIContainerResource
  ```
- [WithAzureReference](/reference/api/go/communitytoolkit.aspire.hosting.floci/flociuicontainerresource/withazurereference.md) -- `method` -- Attaches an additional Floci Azure resource to a Floci UI console
  ```go
  WithAzureReference(cloud FlociAzureContainerResource) FlociUIContainerResource
  ```
- [WithGcpReference](/reference/api/go/communitytoolkit.aspire.hosting.floci/flociuicontainerresource/withgcpreference.md) -- `method` -- Attaches an additional Floci GCP resource to a Floci UI console
  ```go
  WithGcpReference(cloud FlociGcpContainerResource) FlociUIContainerResource
  ```
- [WithHostPort](/reference/api/go/communitytoolkit.aspire.hosting.floci/flociuicontainerresource/withhostport.md) -- `method` -- Configures the host port that the Floci UI resource is exposed on instead of using a randomly assigned port.
  ```go
  WithHostPort(port *float64) FlociUIContainerResource
  ```
