# UmamiResource

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

A resource that represents a Umami instance resource.

## Definition

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

## Embeds

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

## Properties

- `PrimaryEndpoint`: `EndpointReference` `get` -- Gets the primary endpoint for the Umami instance.
- `SecretParameter`: `ParameterResource` `get` -- Gets the parameter that contains the Umami app secret.

## Methods

- [WithPostgreSQL](/reference/api/go/communitytoolkit.aspire.hosting.umami/umamiresource/withpostgresql.md) -- `method` -- Configures PostgreSQL as the storage backend for Umami
  ```go
  WithPostgreSQL(database PostgresDatabaseResource) UmamiResource
  ```
