Skip to content

resolveSecret

function resolveSecret(source: SecretSource, options?: ResolveSecretOptions): Promise<SecretValue>;

Defined in: src/profiles/SecretSource.ts:68

Resolves a secret source into a string or Buffer without logging the value.

ParameterTypeDescription
sourceSecretSourceSecret source to resolve.
optionsResolveSecretOptionsOptional env and file-reader overrides.

Promise<SecretValue>

Resolved secret value.

ConfigurationError When a descriptor is invalid or unavailable.