Aller au contenu
English

AwsSecretReference

import type { AwsSecretReference } from "@elie-laloum/outpost/secrets/aws";
  • idRequis
    string
    Nom ou ARN exact du secret Secrets Manager transmis comme SecretId.
  • fieldOptionnel
    string | undefined
    Champ JSON propre de premier niveau à extraire du SecretString. Sans lui, utilise toute la valeur textuelle. Le secret contenant le champ reste récupéré ; tableaux, champs absents et valeurs non textuelles échouent.
  • versionIdOptionnel
    string | undefined
    Identifiant optionnel de version AWS immuable transmis comme VersionId ; avec versionStage, les deux doivent désigner la même version.
  • versionStageOptionnel
    string | undefined
    Libellé optionnel de version AWS transmis comme VersionStage ; le service utilise AWSCURRENT si aucun sélecteur n’est fourni.
export interface AwsSecretReference {
  readonly id: string;
  readonly field?: string;
  readonly versionId?: string;
  readonly versionStage?: string;
}