# ZitadelResource

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

## Definition

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

## Embeds

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

## Methods

- [WithDatabase](/reference/api/go/communitytoolkit.aspire.hosting.zitadel/zitadelresource/withdatabase.md) -- `method` -- Adds database support to the Zitadel resource.
  ```go
  WithDatabase(server PostgresServerResource, options ...*WithDatabaseOptions) ZitadelResource
  ```
- [WithExistingDatabase](/reference/api/go/communitytoolkit.aspire.hosting.zitadel/zitadelresource/withexistingdatabase.md) -- `method` -- Adds database support to the Zitadel resource.
  ```go
  WithExistingDatabase(database PostgresDatabaseResource) ZitadelResource
  ```
- [WithExternalDomain](/reference/api/go/communitytoolkit.aspire.hosting.zitadel/zitadelresource/withexternaldomain.md) -- `method` -- Configures the external domain for the Zitadel resource
  ```go
  WithExternalDomain(externalDomain string) ZitadelResource
  ```
