Skip to content
Français

AwsSecretSourceOptions

import type { AwsSecretSourceOptions } from "@elie-laloum/outpost/secrets/aws";
  • clientRequired
    Pick<SecretsManagerClient, "send">
    Caller-owned SecretsManager SDK client, authenticated on the host. The adapter uses only send with GetSecretValueCommand and passes abortSignal; it never destroys the client.
  • secretsRequired
    Readonly<Record<string, AwsSecretReference>>
    Explicit mapping from environment identifiers to AWS secret IDs or ARNs and optional field/version selectors. The complete selection is checked before a read, and mappings are snapshotted at construction.
import type { SecretsManagerClient } from "@aws-sdk/client-secrets-manager";

export interface AwsSecretSourceOptions {
  readonly client: Pick<SecretsManagerClient, "send">;
  readonly secrets: Readonly<Record<string, AwsSecretReference>>;
}