# BitwardenSecretResource

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

Represents a Bitwarden secret resource.

## Definition

```typescript
interface BitwardenSecretResource
  extends IExpressionValue,
    IManifestExpressionProvider,
    IResource,
    IResourceWithParent,
    BitwardenSecretManagerResource]],
    IValueProvider,
    IValueWithReferences {
  asSecretId(): IExpressionValue;
}
```

## Methods

- [asSecretId](/reference/api/typescript/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.
    ```typescript
  asSecretId(): IExpressionValue
  ```
