# BitwardenSecretResource

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

Represents a Bitwarden secret resource.

## Definition

```go
type BitwardenSecretResource interface {
    ExpressionValue
    Resource
    ResourceWithParent
}
```

## Embeds

- `ExpressionValue`
- `Resource`
- `ResourceWithParent`

## Methods

- [AsSecretId](/reference/api/go/communitytoolkit.aspire.hosting.bitwarden.secretmanager/bitwardensecretresource/assecretid.md) -- `method` -- Returns an `IExpressionValue` that resolves to the Bitwarden secret identifier. Pass it to `WithEnvironment` to inject the secret ID as an environment variable. The app then uses the Bitwarden SDK to fetch the secret value at runtime.
  ```go
  AsSecretId() ExpressionValue
  ```
