# FlagdResource

- Module: [CommunityToolkit.Aspire.Hosting.Flagd](/reference/api/typescript/communitytoolkit.aspire.hosting.flagd.md)
- Version: `13.4.0`
- Kind: `handle`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire)

A resource that represents a flagd container.

## Definition

```typescript
interface FlagdResource
  extends IComputeResource,
    IExpressionValue,
    IManifestExpressionProvider,
    IResource,
    IResourceWithArgs,
    IResourceWithConnectionString,
    IResourceWithEndpoints,
    IResourceWithEnvironment,
    IResourceWithProbes,
    IResourceWithWaitSupport,
    IValueProvider,
    IValueWithReferences {
  readonly connectionStringExpression: ReferenceExpression;
  readonly healthCheckEndpoint: EndpointReference;
  readonly host: EndpointReferenceExpression;
  readonly ofrepEndpoint: EndpointReference;
  readonly port: EndpointReferenceExpression;
  readonly primaryEndpoint: EndpointReference;
  readonly uriExpression: ReferenceExpression;
  withBindFileSync(
      fileSource: string,
      filename?: string): FlagdResource;
}
```

## Properties

- `connectionStringExpression`: `ReferenceExpression` `get` -- Gets the connection string expression for the flagd server.
- `healthCheckEndpoint`: `EndpointReference` `get` -- Gets the health check HTTP endpoint for the flagd server.
- `host`: `EndpointReferenceExpression` `get` -- Gets the host endpoint reference for this resource.
- `ofrepEndpoint`: `EndpointReference` `get` -- Gets the OFREP endpoint for the flagd server.
- `port`: `EndpointReferenceExpression` `get` -- Gets the port endpoint reference for this resource.
- `primaryEndpoint`: `EndpointReference` `get` -- Gets the primary HTTP endpoint for the flagd server.
- `uriExpression`: `ReferenceExpression` `get` -- Gets the connection URI expression for the flagd server.

## Methods

- [withBindFileSync](/reference/api/typescript/communitytoolkit.aspire.hosting.flagd/flagdresource/withbindfilesync.md) -- `method` -- Configures flagd to use a bind mount as the source of flags.
    ```typescript
  withBindFileSync(fileSource: string, filename?: string): FlagdResource
  ```
