Skip to content

Open-source Grok Bot alternative for named AI teammates. Local-first desktop, web, and mobile clients with per-bot tools, instructions, and memory. Independent fork of T3 Code.

699 B
Raw Blame
import * as cloudwatch from "@distilled.cloud/aws/cloudwatch";
import * as Layer from "effect/Layer";
import { makeCloudWatchResourceHttpBinding } from "./BindingHttp.ts";
import { GetInsightRuleReport } from "./GetInsightRuleReport.ts";
import type { InsightRule } from "./InsightRule.ts";

export const GetInsightRuleReportHttp = Layer.effect(
  GetInsightRuleReport,
  makeCloudWatchResourceHttpBinding({
    tag: "AWS.CloudWatch.GetInsightRuleReport",
    operation: cloudwatch.getInsightRuleReport,
    actions: ["cloudwatch:GetInsightRuleReport"],
    requestKey: "RuleName",
    identifier: (rule: InsightRule) => rule.ruleName,
    resourceArn: (rule: InsightRule) => rule.ruleArn,
  }),
);