Skip to content
Français

AwsSecretReference

import type { AwsSecretReference } from "@elie-laloum/outpost/secrets/aws";
  • idRequired
    string
    Exact Secrets Manager secret name or ARN sent as SecretId.
  • fieldOptional
    string | undefined
    Own top-level JSON field to extract from SecretString. Without it, use the full text value. The enclosing secret is still fetched; arrays, absent fields and non-string values fail.
  • versionIdOptional
    string | undefined
    Optional immutable AWS version ID forwarded as VersionId; if combined with versionStage both must identify the same version.
  • versionStageOptional
    string | undefined
    Optional AWS version label forwarded as VersionStage; the service defaults to AWSCURRENT when no version selector is supplied.
export interface AwsSecretReference {
  readonly id: string;
  readonly field?: string;
  readonly versionId?: string;
  readonly versionStage?: string;
}