sailfork / t3code-github / .repos/ alchemy-effect/ packages/ aws/ src/ CloudFront/ PutKeyHttp.ts

import * as kvs from "@distilled.cloud/aws/cloudfront-keyvaluestore";
import * as Layer from "effect/Layer";
import { makeKeyValueStoreScopedHttpBinding } from "./BindingHttp.ts";
import { PutKey } from "./PutKey.ts";

export const PutKeyHttp = Layer.effect(
  PutKey,
  makeKeyValueStoreScopedHttpBinding({
    tag: "AWS.CloudFront.PutKey",
    operation: kvs.putKey,
    actions: ["cloudfront-keyvaluestore:PutKey"],
  }),
);