# FlociAwsContainerResource

- 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 AWS emulator container.

## Definition

```go
type FlociAwsContainerResource interface {
    ExpressionValue
    IComputeResource
    Resource
    ResourceWithArgs
    ResourceWithConnectionString
    ResourceWithEndpoints
    ResourceWithEnvironment
    ResourceWithWaitSupport
}
```

## Embeds

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

## Properties

- `ConnectionStringExpression`: `*ReferenceExpression` `get` -- Gets the emulator endpoint URL, following the primary endpoint's `Scheme`.
- `Host`: `EndpointReferenceExpression` `get` -- Gets the host endpoint reference for the primary endpoint.
- `Port`: `EndpointReferenceExpression` `get` -- Gets the port endpoint reference for the primary endpoint.
- `PrimaryEndpoint`: `EndpointReference` `get` -- Gets the primary endpoint reference for the Floci container.
- `Scheme`: `EndpointReferenceExpression` `get` -- Gets the scheme endpoint reference for the primary endpoint. `http` unless a TLS certificate has been configured, in which case the endpoint is switched to `https` before the application starts. Floci serves both on the same port, so the port never changes.

## Methods

- [WithConfigFile](/reference/api/go/communitytoolkit.aspire.hosting.floci/flociawscontainerresource/withconfigfile.md) -- `method` -- Mounts a custom Quarkus `application.yml` configuration file into the Floci container. The file is mounted read-only at `/deployments/config/application.yml`, which Quarkus reads on startup and merges with built-in defaults.
  ```go
  WithConfigFile(hostPath string) FlociAwsContainerResource
  ```
- [WithDataBindMount](/reference/api/go/communitytoolkit.aspire.hosting.floci/flociawscontainerresource/withdatabindmount.md) -- `method` -- Configures a bind mount for persistent Floci state.
  ```go
  WithDataBindMount(source string, options ...*WithDataBindMountOptions) FlociAwsContainerResource
  ```
- [WithDataVolume](/reference/api/go/communitytoolkit.aspire.hosting.floci/flociawscontainerresource/withdatavolume.md) -- `method` -- Configures a named data volume for persistent Floci state.
  ```go
  WithDataVolume(name string, options ...*WithDataVolumeOptions) FlociAwsContainerResource
  ```
- [WithDockerSocket](/reference/api/go/communitytoolkit.aspire.hosting.floci/flociawscontainerresource/withdockersocket.md) -- `method` -- Mounts the Docker socket into the Floci container so that Lambda and other container-backed AWS services can launch sibling containers. Also sets `FLOCI_DOCKER_DOCKER_HOST` to `unix:///var/run/docker.sock` (the container-side path where the socket is always mounted) so Floci can connect to it.
  ```go
  WithDockerSocket(options ...*WithDockerSocketOptions) FlociAwsContainerResource
  ```
- [WithFlociUI](/reference/api/go/communitytoolkit.aspire.hosting.floci/flociawscontainerresource/withflociui.md) -- `method` -- Adds a Floci UI web console container for the Floci resource
  ```go
  WithFlociUI(options ...*WithFlociUIOptions) FlociAwsContainerResource
  ```
