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 { EnableInsightRules } from "./EnableInsightRules.ts";
6
7export const EnableInsightRulesHttp = Layer.effect(
8 EnableInsightRules,
9 makeCloudWatchResourceSetHttpBinding({
10 tag: "AWS.CloudWatch.EnableInsightRules",
11 operation: cloudwatch.enableInsightRules,
12 action: "cloudwatch:EnableInsightRules",
13 namesKey: "RuleNames",
14 name: (rule: InsightRuleResource) => rule.ruleName,
15 arn: (rule: InsightRuleResource) => rule.ruleArn,
16 }),
17);