MCPcopy Index your code
hub / github.com/simstudioai/sim / fetchSecretString

Function fetchSecretString

packages/runtime-secrets/src/index.ts:57–64  ·  view source on GitHub ↗
(client: SecretsManagerClient, secretId: string)

Source from the content-addressed store, hash-verified

55}
56
57async function fetchSecretString(client: SecretsManagerClient, secretId: string): Promise<string> {
58 const response = await sendWithRetry(client, secretId)
59 if (!response.SecretString) {
60 // Non-retriable: a binary secret will never become a string between attempts.
61 throw new Error('Secret has no SecretString (binary secrets are not supported)')
62 }
63 return response.SecretString
64}
65
66async function sendWithRetry(
67 client: SecretsManagerClient,

Callers 1

loadRuntimeSecretsFunction · 0.85

Calls 1

sendWithRetryFunction · 0.85

Tested by

no test coverage detected