1import * as cloudwatch from "@distilled.cloud/aws/cloudwatch";
2import * as Layer from "effect/Layer";
3import type { InsightRuleResource } from "./binding-common.ts";
4import { makeCloudWatchResourceSetHttpBinding } from "./BindingHttp.ts";
5import { DisableInsightRules } from "./DisableInsightRules.ts";
6
7export 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);