Skip to content
TypeScript
428 B
Raw Blame
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"],
  }),
);