The best way to control Claude Code, Codex and more from any computer or phone

main
ts 17 lines 707 Bytes
Raw
1 import * as cloudwatch from "@distilled.cloud/aws/cloudwatch";
2 import * as Layer from "effect/Layer";
3 import type { InsightRuleResource } from "./binding-common.ts";
4 import { makeCloudWatchResourceSetHttpBinding } from "./BindingHttp.ts";
5 import { DisableInsightRules } from "./DisableInsightRules.ts";
6
7 export const DisableInsightRulesHttp = Layer.effect(
8 DisableInsightRules,
9 makeCloudWatchResourceSetHttpBinding({
10 tag: "AWS.CloudWatch.DisableInsightRules",
11 operation: cloudwatch.disableInsightRules,
12 action: "cloudwatch:DisableInsightRules",
13 namesKey: "RuleNames",
14 name: (rule: InsightRuleResource) => rule.ruleName,
15 arn: (rule: InsightRuleResource) => rule.ruleArn,
16 }),
17 );