sailfork / t3code-github / .repos/ alchemy-effect/ packages/ aws/ src/ SecretsManager/ GetSecretValueHttp.ts

import * as secretsmanager from "@distilled.cloud/aws/secrets-manager";
import * as Layer from "effect/Layer";
import { makeSecretHttpBinding } from "./BindingHttp.ts";
import { GetSecretValue } from "./GetSecretValue.ts";

export const GetSecretValueHttp = Layer.effect(
  GetSecretValue,
  makeSecretHttpBinding({
    tag: "AWS.SecretsManager.GetSecretValue",
    operation: secretsmanager.getSecretValue,
    actions: ["secretsmanager:GetSecretValue"],
  }),
);