BatchGetSecretValue
Source:
src/AWS/SecretsManager/BatchGetSecretValue.ts
Runtime binding for secretsmanager:BatchGetSecretValue.
Bind this operation to a list of Secrets to get a callable that reads
all of their current values in a single call — the batch counterpart of
GetSecretValue. The bound secrets’ ARNs are injected as the
SecretIdList and each secret is granted secretsmanager:GetSecretValue
(BatchGetSecretValue authorizes per-secret through GetSecretValue).
Provide the implementation with
Effect.provide(AWS.SecretsManager.BatchGetSecretValueHttp).
Reading Secret Values
Section titled “Reading Secret Values”// init — bind the operation to the secretsconst batchGet = yield* AWS.SecretsManager.BatchGetSecretValue([ dbSecret, apiKeySecret,]);
// runtime — one call, every current valueconst result = yield* batchGet();for (const entry of result.SecretValues ?? []) { console.log(entry.Name);}