Skip to content
DocsTry Aspire
DocsTry

BitwardenSecretManagerExtensions Methods

ClassMethods26 members
Extension methods for adding Bitwarden Secrets Manager resources.
AddBitwardenSecretManager(IDistributedApplicationBuilder, string, IResourceBuilder<ParameterResource>, IResourceBuilder<ParameterResource>, IResourceBuilder<ParameterResource>)Section titled AddBitwardenSecretManager(IDistributedApplicationBuilder, string, IResourceBuilder<ParameterResource>, IResourceBuilder<ParameterResource>, IResourceBuilder<ParameterResource>)extensionIResourceBuilder<BitwardenSecretManagerResource>
Adds a Bitwarden Secrets Manager resource. The projectNameOrId parameter resolves to either a project name (creates or finds by name) or a project identifier GUID (adopts the existing project by ID).
public static class BitwardenSecretManagerExtensions
{
public static IResourceBuilder<BitwardenSecretManagerResource> AddBitwardenSecretManager(
this IDistributedApplicationBuilder builder,
string name,
IResourceBuilder<ParameterResource> projectNameOrId,
IResourceBuilder<ParameterResource> organizationId,
IResourceBuilder<ParameterResource> accessToken)
{
// ...
}
}
builderIDistributedApplicationBuilderThe distributed application builder.
namestringThe resource name.
projectNameOrIdIResourceBuilder<ParameterResource>The parameter that resolves to the Bitwarden project name or project identifier (GUID).
organizationIdIResourceBuilder<ParameterResource>The parameter that resolves to the Bitwarden organization identifier.
accessTokenIResourceBuilder<ParameterResource>The access token parameter used to manage the Bitwarden project and managed secrets.
IResourceBuilder<BitwardenSecretManagerResource>The resource builder.
AddSecret(IResourceBuilder<BitwardenSecretManagerResource>, string)Section titled AddSecret(IResourceBuilder<BitwardenSecretManagerResource>, string)extensionIResourceBuilder<BitwardenSecretResource>
Adds a managed Bitwarden secret whose local and remote names are the same. The secret value is resolved from configuration key Parameters:{parentName}-{name}.
public static class BitwardenSecretManagerExtensions
{
public static IResourceBuilder<BitwardenSecretResource> AddSecret(
this IResourceBuilder<BitwardenSecretManagerResource> builder,
string name)
{
// ...
}
}
builderIResourceBuilder<BitwardenSecretManagerResource>The parent Bitwarden resource builder.
namestringThe Aspire resource name and Bitwarden secret name.
IResourceBuilder<BitwardenSecretResource>The managed secret resource builder.
AddSecret(IResourceBuilder<BitwardenSecretManagerResource>, string, string)Section titled AddSecret(IResourceBuilder<BitwardenSecretManagerResource>, string, string)extensionIResourceBuilder<BitwardenSecretResource>
Adds a managed Bitwarden secret with distinct Aspire and remote names. The secret value is resolved from configuration key Parameters:{parentName}-{name}.
public static class BitwardenSecretManagerExtensions
{
public static IResourceBuilder<BitwardenSecretResource> AddSecret(
this IResourceBuilder<BitwardenSecretManagerResource> builder,
string name,
string remoteName)
{
// ...
}
}
builderIResourceBuilder<BitwardenSecretManagerResource>The parent Bitwarden resource builder.
namestringThe Aspire resource name.
remoteNamestringThe Bitwarden secret name.
IResourceBuilder<BitwardenSecretResource>The managed secret resource builder.
AsSecretId(IResourceBuilder<BitwardenSecretResource>)Section titled AsSecretId(IResourceBuilder<BitwardenSecretResource>)extensionIExpressionValue
Returns an ApplicationModel.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.
public static class BitwardenSecretManagerExtensions
{
public static IExpressionValue AsSecretId(
this IResourceBuilder<BitwardenSecretResource> secret)
{
// ...
}
}
secretIResourceBuilder<BitwardenSecretResource>The Bitwarden secret resource builder.
IExpressionValueAn expression value that resolves to the Bitwarden secret identifier.
GetSecret(IResourceBuilder<BitwardenSecretManagerResource>, string)Section titled GetSecret(IResourceBuilder<BitwardenSecretManagerResource>, string)extensionIResourceBuilder<BitwardenSecretResource>
Gets or creates a Bitwarden secret reference whose Aspire and remote names are the same. The secret must already exist in Bitwarden; use BitwardenSecretManagerExtensions.AddSecret if Aspire should own and write the secret value.
public static class BitwardenSecretManagerExtensions
{
public static IResourceBuilder<BitwardenSecretResource> GetSecret(
this IResourceBuilder<BitwardenSecretManagerResource> builder,
string name)
{
// ...
}
}
builderIResourceBuilder<BitwardenSecretManagerResource>The resource builder.
namestringThe Aspire resource name and Bitwarden secret name.
IResourceBuilder<BitwardenSecretResource>A resource builder for the secret reference.
GetSecret(IResourceBuilder<BitwardenSecretManagerResource>, string, string)Section titled GetSecret(IResourceBuilder<BitwardenSecretManagerResource>, string, string)extensionIResourceBuilder<BitwardenSecretResource>
Gets or creates a Bitwarden secret reference with distinct Aspire and remote names. The secret must already exist in Bitwarden; use BitwardenSecretManagerExtensions.AddSecret if Aspire should own and write the secret value.
public static class BitwardenSecretManagerExtensions
{
public static IResourceBuilder<BitwardenSecretResource> GetSecret(
this IResourceBuilder<BitwardenSecretManagerResource> builder,
string name,
string remoteName)
{
// ...
}
}
builderIResourceBuilder<BitwardenSecretManagerResource>The resource builder.
namestringThe Aspire resource name.
remoteNamestringThe Bitwarden secret name.
IResourceBuilder<BitwardenSecretResource>A resource builder for the secret reference.
GetSecret(IResourceBuilder<BitwardenSecretManagerResource>, string, Guid)Section titled GetSecret(IResourceBuilder<BitwardenSecretManagerResource>, string, Guid)extensionIResourceBuilder<BitwardenSecretResource>
Gets or creates a Bitwarden secret reference by secret identifier. Use this when multiple secrets share the same name and the identifier is the only unambiguous key. The secret must already exist in Bitwarden; use BitwardenSecretManagerExtensions.AddSecret if Aspire should own and write the secret value.
public static class BitwardenSecretManagerExtensions
{
public static IResourceBuilder<BitwardenSecretResource> GetSecret(
this IResourceBuilder<BitwardenSecretManagerResource> builder,
string name,
Guid secretId)
{
// ...
}
}
builderIResourceBuilder<BitwardenSecretManagerResource>The resource builder.
namestringThe Aspire resource name.
secretIdGuidThe Bitwarden secret identifier.
IResourceBuilder<BitwardenSecretResource>A resource builder for the secret reference.
WithApiUrl(IResourceBuilder<BitwardenSecretManagerResource>, string)Section titled WithApiUrl(IResourceBuilder<BitwardenSecretManagerResource>, string)extensionIResourceBuilder<BitwardenSecretManagerResource>
Overrides the Bitwarden API URL.
public static class BitwardenSecretManagerExtensions
{
public static IResourceBuilder<BitwardenSecretManagerResource> WithApiUrl(
this IResourceBuilder<BitwardenSecretManagerResource> builder,
string apiUrl)
{
// ...
}
}
builderIResourceBuilder<BitwardenSecretManagerResource>The resource builder.
apiUrlstringThe absolute Bitwarden API URL.
IResourceBuilder<BitwardenSecretManagerResource>The resource builder.
WithApiUrl(IResourceBuilder<BitwardenSecretManagerResource>, IResourceBuilder<ParameterResource>)Section titled WithApiUrl(IResourceBuilder<BitwardenSecretManagerResource>, IResourceBuilder<ParameterResource>)extensionIResourceBuilder<BitwardenSecretManagerResource>
Overrides the Bitwarden API URL using a parameter.
public static class BitwardenSecretManagerExtensions
{
public static IResourceBuilder<BitwardenSecretManagerResource> WithApiUrl(
this IResourceBuilder<BitwardenSecretManagerResource> builder,
IResourceBuilder<ParameterResource> apiUrl)
{
// ...
}
}
builderIResourceBuilder<BitwardenSecretManagerResource>The resource builder.
apiUrlIResourceBuilder<ParameterResource>The parameter that resolves to the absolute Bitwarden API URL.
IResourceBuilder<BitwardenSecretManagerResource>The resource builder.
WithApiUrl(IResourceBuilder<BitwardenSecretManagerResource>, IResourceBuilder<ExternalServiceResource>)Section titled WithApiUrl(IResourceBuilder<BitwardenSecretManagerResource>, IResourceBuilder<ExternalServiceResource>)extensionIResourceBuilder<BitwardenSecretManagerResource>
Overrides the Bitwarden API URL using an external service resource. The Bitwarden resource will wait for the external service before authenticating.
public static class BitwardenSecretManagerExtensions
{
public static IResourceBuilder<BitwardenSecretManagerResource> WithApiUrl(
this IResourceBuilder<BitwardenSecretManagerResource> builder,
IResourceBuilder<ExternalServiceResource> server)
{
// ...
}
}
builderIResourceBuilder<BitwardenSecretManagerResource>The resource builder.
serverIResourceBuilder<ExternalServiceResource>The external service whose URL is used as the Bitwarden API URL.
IResourceBuilder<BitwardenSecretManagerResource>The resource builder.
WithApiUrl(IResourceBuilder<BitwardenSecretManagerResource>, EndpointReference)Section titled WithApiUrl(IResourceBuilder<BitwardenSecretManagerResource>, EndpointReference)extensionIResourceBuilder<BitwardenSecretManagerResource>
Overrides the Bitwarden API URL using an endpoint from another resource in the Aspire model.
public static class BitwardenSecretManagerExtensions
{
public static IResourceBuilder<BitwardenSecretManagerResource> WithApiUrl(
this IResourceBuilder<BitwardenSecretManagerResource> builder,
EndpointReference endpoint)
{
// ...
}
}
builderIResourceBuilder<BitwardenSecretManagerResource>The resource builder.
endpointEndpointReferenceThe endpoint reference for the Bitwarden API.
IResourceBuilder<BitwardenSecretManagerResource>The resource builder.
WithAuthCacheDirectory(IResourceBuilder<BitwardenSecretManagerResource>, string)Section titled WithAuthCacheDirectory(IResourceBuilder<BitwardenSecretManagerResource>, string)extensionIResourceBuilder<BitwardenSecretManagerResource>
Overrides the AppHost auth cache directory (Bitwarden SDK auth session used by the AppHost reconciler). Defaults to the Aspire store when not set. Override to reuse a cached auth session across CI runs. To configure the auth cache directory inside the deployed app, use BitwardenSecretManagerExtensions.WithBitwardenAuthCacheDirectory.
public static class BitwardenSecretManagerExtensions
{
public static IResourceBuilder<BitwardenSecretManagerResource> WithAuthCacheDirectory(
this IResourceBuilder<BitwardenSecretManagerResource> builder,
string authCacheDirectory)
{
// ...
}
}
builderIResourceBuilder<BitwardenSecretManagerResource>The resource builder.
authCacheDirectorystringThe auth cache directory on the AppHost, relative to the Aspire store when not rooted.
IResourceBuilder<BitwardenSecretManagerResource>The resource builder.
WithBitwardenAccessToken(IResourceBuilder<TDestination>, IResourceBuilder<BitwardenSecretManagerResource>, IResourceBuilder<ParameterResource>)Section titled WithBitwardenAccessToken(IResourceBuilder<TDestination>, IResourceBuilder<BitwardenSecretManagerResource>, IResourceBuilder<ParameterResource>)extensionIResourceBuilder<TDestination>
Overrides the Bitwarden access token injected into the connection for source. By default the management token is used. Supply a least-privilege read-only token here.
public static class BitwardenSecretManagerExtensions
{
public static IResourceBuilder<TDestination> WithBitwardenAccessToken<TDestination>(
this IResourceBuilder<TDestination> builder,
IResourceBuilder<BitwardenSecretManagerResource> source,
IResourceBuilder<ParameterResource> accessToken)
{
// ...
}
}
builderIResourceBuilder<TDestination>The destination resource builder.
sourceIResourceBuilder<BitwardenSecretManagerResource>The Bitwarden resource whose connection name to target.
accessTokenIResourceBuilder<ParameterResource>The access token parameter for this connection.
IResourceBuilder<TDestination>The destination resource builder.
WithBitwardenAccessToken(IResourceBuilder<TDestination>, string, IResourceBuilder<ParameterResource>)Section titled WithBitwardenAccessToken(IResourceBuilder<TDestination>, string, IResourceBuilder<ParameterResource>)extensionIResourceBuilder<TDestination>
Overrides the Bitwarden access token injected into the specified connection. By default the management token is used. Supply a least-privilege read-only token here. Use the source-based overload when the connection name equals the Bitwarden resource name.
public static class BitwardenSecretManagerExtensions
{
public static IResourceBuilder<TDestination> WithBitwardenAccessToken<TDestination>(
this IResourceBuilder<TDestination> builder,
string connectionName,
IResourceBuilder<ParameterResource> accessToken)
{
// ...
}
}
builderIResourceBuilder<TDestination>The destination resource builder.
connectionNamestringThe logical connection name, matching the one passed to BitwardenSecretManagerExtensions.WithReference.
accessTokenIResourceBuilder<ParameterResource>The access token parameter for this connection.
IResourceBuilder<TDestination>The destination resource builder.
WithBitwardenAuthCacheDirectory(IResourceBuilder<TDestination>, IResourceBuilder<BitwardenSecretManagerResource>, string)Section titled WithBitwardenAuthCacheDirectory(IResourceBuilder<TDestination>, IResourceBuilder<BitwardenSecretManagerResource>, string)extensionIResourceBuilder<TDestination>
Configures the directory where the Bitwarden SDK stores its auth cache inside the resource, for the connection associated with source.
public static class BitwardenSecretManagerExtensions
{
public static IResourceBuilder<TDestination> WithBitwardenAuthCacheDirectory<TDestination>(
this IResourceBuilder<TDestination> builder,
IResourceBuilder<BitwardenSecretManagerResource> source,
string authCacheDirectory)
{
// ...
}
}
builderIResourceBuilder<TDestination>The destination resource builder.
sourceIResourceBuilder<BitwardenSecretManagerResource>The Bitwarden resource whose connection name to target.
authCacheDirectorystringThe directory path inside the app where the auth cache file is stored.
IResourceBuilder<TDestination>The destination resource builder.
WithBitwardenAuthCacheDirectory(IResourceBuilder<TDestination>, string, string)Section titled WithBitwardenAuthCacheDirectory(IResourceBuilder<TDestination>, string, string)extensionIResourceBuilder<TDestination>
Configures the directory where the Bitwarden SDK stores its auth cache inside the resource, for the specified connection. Use the source-based overload when the connection name equals the Bitwarden resource name.
public static class BitwardenSecretManagerExtensions
{
public static IResourceBuilder<TDestination> WithBitwardenAuthCacheDirectory<TDestination>(
this IResourceBuilder<TDestination> builder,
string connectionName,
string authCacheDirectory)
{
// ...
}
}
builderIResourceBuilder<TDestination>The destination resource builder.
connectionNamestringThe logical connection name.
authCacheDirectorystringThe directory path inside the app where the auth cache file is stored.
IResourceBuilder<TDestination>The destination resource builder.
WithBitwardenAuthCacheDirectory(IResourceBuilder<TDestination>, IResourceBuilder<BitwardenSecretManagerResource>, IResourceBuilder<ParameterResource>)Section titled WithBitwardenAuthCacheDirectory(IResourceBuilder<TDestination>, IResourceBuilder<BitwardenSecretManagerResource>, IResourceBuilder<ParameterResource>)extensionIResourceBuilder<TDestination>
Configures the directory where the Bitwarden SDK stores its auth cache inside the resource, using a parameter, for the connection associated with source.
public static class BitwardenSecretManagerExtensions
{
public static IResourceBuilder<TDestination> WithBitwardenAuthCacheDirectory<TDestination>(
this IResourceBuilder<TDestination> builder,
IResourceBuilder<BitwardenSecretManagerResource> source,
IResourceBuilder<ParameterResource> authCacheDirectory)
{
// ...
}
}
builderIResourceBuilder<TDestination>The destination resource builder.
sourceIResourceBuilder<BitwardenSecretManagerResource>The Bitwarden resource whose connection name to target.
authCacheDirectoryIResourceBuilder<ParameterResource>A parameter whose value is the directory path inside the app.
IResourceBuilder<TDestination>The destination resource builder.
WithBitwardenAuthCacheDirectory(IResourceBuilder<TDestination>, string, IResourceBuilder<ParameterResource>)Section titled WithBitwardenAuthCacheDirectory(IResourceBuilder<TDestination>, string, IResourceBuilder<ParameterResource>)extensionIResourceBuilder<TDestination>
Configures the directory where the Bitwarden SDK stores its auth cache inside the resource, using a parameter, for the specified connection. Use the source-based overload when the connection name equals the Bitwarden resource name.
public static class BitwardenSecretManagerExtensions
{
public static IResourceBuilder<TDestination> WithBitwardenAuthCacheDirectory<TDestination>(
this IResourceBuilder<TDestination> builder,
string connectionName,
IResourceBuilder<ParameterResource> authCacheDirectory)
{
// ...
}
}
builderIResourceBuilder<TDestination>The destination resource builder.
connectionNamestringThe logical connection name.
authCacheDirectoryIResourceBuilder<ParameterResource>A parameter whose value is the directory path inside the app.
IResourceBuilder<TDestination>The destination resource builder.
WithBitwardenAuthCacheVolume(IResourceBuilder<TDestination>, IResourceBuilder<BitwardenSecretManagerResource>, string?, string)Section titled WithBitwardenAuthCacheVolume(IResourceBuilder<TDestination>, IResourceBuilder<BitwardenSecretManagerResource>, string?, string)extensionIResourceBuilder<TDestination>
Mounts a named volume and configures the Bitwarden SDK to store its auth cache there, for the connection associated with source. Use this for container resources. For process resources or when the container path is already known, use BitwardenSecretManagerExtensions.WithBitwardenAuthCacheDirectory instead.
public static class BitwardenSecretManagerExtensions
{
public static IResourceBuilder<TDestination> WithBitwardenAuthCacheVolume<TDestination>(
this IResourceBuilder<TDestination> builder,
IResourceBuilder<BitwardenSecretManagerResource> source,
string? volumeName = null,
string containerDirectory = "/var/lib/bitwarden")
{
// ...
}
}
builderIResourceBuilder<TDestination>The destination resource builder.
sourceIResourceBuilder<BitwardenSecretManagerResource>The Bitwarden resource whose connection name to target.
volumeNamestring?optionalThe Docker volume name. Defaults to {resourceName}-{connectionName}-bitwarden-auth when null.
containerDirectorystringoptionalThe directory inside the container where the volume is mounted. Defaults to /var/lib/bitwarden.
IResourceBuilder<TDestination>The destination resource builder.
InvalidOperationExceptionThrown when the destination resource is not a container resource.
WithBitwardenAuthCacheVolume(IResourceBuilder<TDestination>, string, string?, string)Section titled WithBitwardenAuthCacheVolume(IResourceBuilder<TDestination>, string, string?, string)extensionIResourceBuilder<TDestination>
Mounts a named volume and configures the Bitwarden SDK to store its auth cache there, for the specified connection. Use this for container resources. Use the source-based overload when the connection name equals the Bitwarden resource name.
public static class BitwardenSecretManagerExtensions
{
public static IResourceBuilder<TDestination> WithBitwardenAuthCacheVolume<TDestination>(
this IResourceBuilder<TDestination> builder,
string connectionName,
string? volumeName = null,
string containerDirectory = "/var/lib/bitwarden")
{
// ...
}
}
builderIResourceBuilder<TDestination>The destination resource builder.
connectionNamestringThe logical connection name.
volumeNamestring?optionalThe Docker volume name. Defaults to {resourceName}-{connectionName}-bitwarden-auth when null.
containerDirectorystringoptionalThe directory inside the container where the volume is mounted. Defaults to /var/lib/bitwarden.
IResourceBuilder<TDestination>The destination resource builder.
InvalidOperationExceptionThrown when the destination resource is not a container resource.
WithCacheFile(IResourceBuilder<BitwardenSecretManagerResource>, string)Section titled WithCacheFile(IResourceBuilder<BitwardenSecretManagerResource>, string)extensionIResourceBuilder<BitwardenSecretManagerResource>
Overrides the AppHost cache file path (integration bookkeeping: Bitwarden project ID, secret ID mappings). Defaults to .bitwarden/{resourceName}.{environment}.json relative to the AppHost directory. Override to share the cache across multiple AppHost projects, or to store it in a CI cache directory.
public static class BitwardenSecretManagerExtensions
{
public static IResourceBuilder<BitwardenSecretManagerResource> WithCacheFile(
this IResourceBuilder<BitwardenSecretManagerResource> builder,
string cacheFile)
{
// ...
}
}
builderIResourceBuilder<BitwardenSecretManagerResource>The resource builder.
cacheFilestringThe cache file path, relative to the AppHost directory when not rooted.
IResourceBuilder<BitwardenSecretManagerResource>The resource builder.
WithIdentityUrl(IResourceBuilder<BitwardenSecretManagerResource>, string)Section titled WithIdentityUrl(IResourceBuilder<BitwardenSecretManagerResource>, string)extensionIResourceBuilder<BitwardenSecretManagerResource>
Overrides the Bitwarden identity URL.
public static class BitwardenSecretManagerExtensions
{
public static IResourceBuilder<BitwardenSecretManagerResource> WithIdentityUrl(
this IResourceBuilder<BitwardenSecretManagerResource> builder,
string identityUrl)
{
// ...
}
}
builderIResourceBuilder<BitwardenSecretManagerResource>The resource builder.
identityUrlstringThe absolute Bitwarden identity URL.
IResourceBuilder<BitwardenSecretManagerResource>The resource builder.
WithIdentityUrl(IResourceBuilder<BitwardenSecretManagerResource>, IResourceBuilder<ParameterResource>)Section titled WithIdentityUrl(IResourceBuilder<BitwardenSecretManagerResource>, IResourceBuilder<ParameterResource>)extensionIResourceBuilder<BitwardenSecretManagerResource>
Overrides the Bitwarden identity URL using a parameter.
public static class BitwardenSecretManagerExtensions
{
public static IResourceBuilder<BitwardenSecretManagerResource> WithIdentityUrl(
this IResourceBuilder<BitwardenSecretManagerResource> builder,
IResourceBuilder<ParameterResource> identityUrl)
{
// ...
}
}
builderIResourceBuilder<BitwardenSecretManagerResource>The resource builder.
identityUrlIResourceBuilder<ParameterResource>The parameter that resolves to the absolute Bitwarden identity URL.
IResourceBuilder<BitwardenSecretManagerResource>The resource builder.
WithIdentityUrl(IResourceBuilder<BitwardenSecretManagerResource>, IResourceBuilder<ExternalServiceResource>)Section titled WithIdentityUrl(IResourceBuilder<BitwardenSecretManagerResource>, IResourceBuilder<ExternalServiceResource>)extensionIResourceBuilder<BitwardenSecretManagerResource>
Overrides the Bitwarden identity URL using an external service resource. The Bitwarden resource will wait for the external service before authenticating.
public static class BitwardenSecretManagerExtensions
{
public static IResourceBuilder<BitwardenSecretManagerResource> WithIdentityUrl(
this IResourceBuilder<BitwardenSecretManagerResource> builder,
IResourceBuilder<ExternalServiceResource> server)
{
// ...
}
}
builderIResourceBuilder<BitwardenSecretManagerResource>The resource builder.
serverIResourceBuilder<ExternalServiceResource>The external service whose URL is used as the Bitwarden identity URL.
IResourceBuilder<BitwardenSecretManagerResource>The resource builder.
WithIdentityUrl(IResourceBuilder<BitwardenSecretManagerResource>, EndpointReference)Section titled WithIdentityUrl(IResourceBuilder<BitwardenSecretManagerResource>, EndpointReference)extensionIResourceBuilder<BitwardenSecretManagerResource>
Overrides the Bitwarden identity URL using an endpoint from another resource in the Aspire model.
public static class BitwardenSecretManagerExtensions
{
public static IResourceBuilder<BitwardenSecretManagerResource> WithIdentityUrl(
this IResourceBuilder<BitwardenSecretManagerResource> builder,
EndpointReference endpoint)
{
// ...
}
}
builderIResourceBuilder<BitwardenSecretManagerResource>The resource builder.
endpointEndpointReferenceThe endpoint reference for the Bitwarden identity service.
IResourceBuilder<BitwardenSecretManagerResource>The resource builder.
WithReference(IResourceBuilder<TDestination>, IResourceBuilder<BitwardenSecretManagerResource>, string?)Section titled WithReference(IResourceBuilder<TDestination>, IResourceBuilder<BitwardenSecretManagerResource>, string?)extensionIResourceBuilder<TDestination>
Injects structured Bitwarden client configuration into the destination resource.
public static class BitwardenSecretManagerExtensions
{
public static IResourceBuilder<TDestination> WithReference<TDestination>(
this IResourceBuilder<TDestination> builder,
IResourceBuilder<BitwardenSecretManagerResource> source,
string? connectionName = null)
{
// ...
}
}
builderIResourceBuilder<TDestination>The destination resource builder.
sourceIResourceBuilder<BitwardenSecretManagerResource>The Bitwarden resource builder.
connectionNamestring?optionalThe logical connection name. Defaults to the Bitwarden resource name.
IResourceBuilder<TDestination>The destination resource builder.