# BitwardenSecretResource

- Kind: `class`
- Package: [CommunityToolkit.Aspire.Hosting.Bitwarden.SecretManager](/reference/api/csharp/communitytoolkit.aspire.hosting.bitwarden.secretmanager.md)
- Version: `13.4.1-beta.706`
- Namespace: `Aspire.Hosting.ApplicationModel`
- Target framework: `net10.0`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/d479e13473b1d29d06b974f144a0049289a3cb5c/src/CommunityToolkit.Aspire.Hosting.Bitwarden.SecretManager/BitwardenSecretResource.cs)
- Inherits: `ParameterResource`
- Implements: `IManifestExpressionProvider`, `IResource`, `IResourceWithParent`, `IResourceWithParent<BitwardenSecretManagerResource>`, `IValueProvider`, `IValueWithReferences`

Represents a Bitwarden secret resource.

## Definition

```csharp
namespace Aspire.Hosting.ApplicationModel;

public class BitwardenSecretResource
    : Aspire.Hosting.ApplicationModel.ParameterResource,
      Aspire.Hosting.ApplicationModel.IManifestExpressionProvider,
      Aspire.Hosting.ApplicationModel.IResource,
      Aspire.Hosting.ApplicationModel.IResourceWithParent,
      Aspire.Hosting.ApplicationModel.IResourceWithParent<Aspire.Hosting.ApplicationModel.BitwardenSecretManagerResource>,
      Aspire.Hosting.ApplicationModel.IValueProvider,
      Aspire.Hosting.ApplicationModel.IValueWithReferences
{
    // ...
}
```

## ATS metadata

### ATS export

- Type ID: `CommunityToolkit.Aspire.Hosting.Bitwarden.SecretManager/BitwardenSecretResource`

## Constructors

- [BitwardenSecretResource(string, string, BitwardenSecretManagerResource, Func<ParameterDefault?, string>)](/reference/api/csharp/communitytoolkit.aspire.hosting.bitwarden.secretmanager/bitwardensecretresource/constructors.md#constructor-string-string-bitwardensecretmanagerresource-func-parameterdefault-string) -- Initializes a new instance of the [BitwardenSecretResource](/reference/api/csharp/communitytoolkit.aspire.hosting.bitwarden.secretmanager/bitwardensecretresource.md) class for a managed secret.

## Properties

- [IsManaged](/reference/api/csharp/communitytoolkit.aspire.hosting.bitwarden.secretmanager/bitwardensecretresource/properties.md#ismanaged) : `bool` `get` -- Gets a value indicating whether this resource is a managed secret (owned and written by Aspire) as opposed to a reference-only secret (read from an existing Bitwarden secret).
- [Parent](/reference/api/csharp/communitytoolkit.aspire.hosting.bitwarden.secretmanager/bitwardensecretresource/properties.md#parent) : [BitwardenSecretManagerResource](/reference/api/csharp/communitytoolkit.aspire.hosting.bitwarden.secretmanager/bitwardensecretmanagerresource.md) `get` -- Gets the owning Bitwarden resource.
- [RemoteName](/reference/api/csharp/communitytoolkit.aspire.hosting.bitwarden.secretmanager/bitwardensecretresource/properties.md#remotename) : `string` `get` -- Gets the Bitwarden secret name.
- [ResolvedSecretId](/reference/api/csharp/communitytoolkit.aspire.hosting.bitwarden.secretmanager/bitwardensecretresource/properties.md#resolvedsecretid) : `Guid?` `get` -- Gets the effective Bitwarden secret identifier: the explicitly configured ID if set, otherwise the resolved ID.
- [SecretId](/reference/api/csharp/communitytoolkit.aspire.hosting.bitwarden.secretmanager/bitwardensecretresource/properties.md#secretid) : `Guid?` `get` -- Gets the resolved Bitwarden secret identifier after initialization.
