Skip to content
DocsTry Aspire
DocsTry

BitwardenSecretResource Constructors

ClassConstructors1 member
Represents a Bitwarden secret resource.
Constructor(string, string, BitwardenSecretManagerResource, Func<ParameterDefault?, string>)Section titled Constructor(string, string, BitwardenSecretManagerResource, Func<ParameterDefault?, string>)
Initializes a new instance of the BitwardenSecretResource class for a managed secret.
public class BitwardenSecretResource
{
public BitwardenSecretResource(
string name,
string remoteName,
BitwardenSecretManagerResource parent,
Func<ParameterDefault?, string> valueGetter)
{
// ...
}
}
namestringThe internal Aspire resource name.
remoteNamestringThe Bitwarden secret name.
parentBitwardenSecretManagerResourceThe owning Bitwarden resource.
valueGetterFunc<ParameterDefault?, string>Callback that resolves the secret's value from configuration.