class AwsKmsProvider
implements SecretProvider
Since 0.1.0

AWS Secrets Manager provider.

Constructors

AwsKmsProvider(options?: AwsKmsProviderOptions)
Parameters
optional
options: AwsKmsProviderOptions

AWS connection/injection options

Properties

Since 0.5.0
optional
isHealthy: () => Promise<boolean>

Reachability probe, present only when the resolved client supplies one (M90b). The AWS SDK facade has no non-mutating probe of its own, so the adapted (lazy) path stays undefined and the indicator reports reachable: 'unknown'; an injected facade that exposes isHealthy publishes real reachability.

Methods

connect(): Promise<void>

Establishes any backing connection/client. No-op for stateless providers.

disconnect(): Promise<void>

Releases any backing connection/client. No-op for stateless providers.

get(name: string): Promise<string | null>

Reads a secret from AWS Secrets Manager.

isReady(): boolean

Reports whether the provider is ready to serve reads.

set(
name: string,
value: string
): Promise<void>

Writes a new value for a secret.

Usage

import { AwsKmsProvider } from "secrets-plugin/src/index.ts";