# KurrentDBResource

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

A resource that represents a KurrentDB container.

## Definition

```typescript
interface KurrentDBResource
  extends IComputeResource,
    IExpressionValue,
    IManifestExpressionProvider,
    IResource,
    IResourceWithArgs,
    IResourceWithConnectionString,
    IResourceWithEndpoints,
    IResourceWithEnvironment,
    IResourceWithProbes,
    IResourceWithWaitSupport,
    IValueProvider,
    IValueWithReferences {
  readonly connectionStringExpression: ReferenceExpression;
  readonly host: EndpointReferenceExpression;
  readonly port: EndpointReferenceExpression;
  readonly primaryEndpoint: EndpointReference;
  readonly uriExpression: ReferenceExpression;
  withDataBindMount(source: string): KurrentDBResource;
  withDataVolume(name?: string): KurrentDBResource;
}
```

## Properties

- `connectionStringExpression`: `ReferenceExpression` `get` -- Gets the connection string for the KurrentDB server.
- `host`: `EndpointReferenceExpression` `get` -- Gets the host endpoint reference for this resource.
- `port`: `EndpointReferenceExpression` `get` -- Gets the port endpoint reference for this resource.
- `primaryEndpoint`: `EndpointReference` `get` -- Gets the primary endpoint for the KurrentDB server.
- `uriExpression`: `ReferenceExpression` `get` -- Gets the connection URI expression for the KurrentDB server.

## Methods

- [withDataBindMount](/reference/api/typescript/communitytoolkit.aspire.hosting.kurrentdb/kurrentdbresource/withdatabindmount.md) -- `method` -- Adds a bind mount for the data folder to a KurrentDB container resource.
    ```typescript
  withDataBindMount(source: string): KurrentDBResource
  ```
- [withDataVolume](/reference/api/typescript/communitytoolkit.aspire.hosting.kurrentdb/kurrentdbresource/withdatavolume.md) -- `method` -- Adds a named volume for the data folder to a KurrentDB container resource.
    ```typescript
  withDataVolume(name?: string): KurrentDBResource
  ```
