import * as secretsmanager from "@distilled.cloud/aws/secrets-manager"; import * as Effect from "effect/Effect"; import * as Binding from "../../Binding.ts"; import type { Secret } from "./Secret.ts"; export interface BatchGetSecretValueRequest extends Omit { } /** * Runtime binding for `secretsmanager:BatchGetSecretValue`. * * Bind this operation to a list of `Secret`s 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 * **Example:** Read Several Secrets at Once * ```typescript * // init — bind the operation to the secrets * const batchGet = yield* AWS.SecretsManager.BatchGetSecretValue([ * dbSecret, * apiKeySecret, * ]); * * // runtime — one call, every current value * const result = yield* batchGet(); * for (const entry of result.SecretValues ?? []) { * console.log(entry.Name); * } * ``` * * @binding */ export interface BatchGetSecretValue extends Binding.Service Effect.Effect<(request?: BatchGetSecretValueRequest) => Effect.Effect>> { } export declare const BatchGetSecretValue: BatchGetSecretValue; //# sourceMappingURL=BatchGetSecretValue.d.ts.map