sailfork / t3code-github / .repos/ alchemy-effect/ packages/ aws/ src/ EKS/ DescribeInsightHttp.ts

import * as eks from "@distilled.cloud/aws/eks";
import * as Layer from "effect/Layer";
import { makeEKSClusterHttpBinding } from "./BindingHttp.ts";
import { DescribeInsight } from "./DescribeInsight.ts";

export const DescribeInsightHttp = Layer.effect(
  DescribeInsight,
  makeEKSClusterHttpBinding({
    tag: "AWS.EKS.DescribeInsight",
    operation: eks.describeInsight,
    actions: ["eks:DescribeInsight"],
    key: "clusterName",
    scope: "cluster",
  }),
);