| 1 | import * as cloudwatch from "@distilled.cloud/aws/cloudwatch"; |
| 2 | import * as Layer from "effect/Layer"; |
| 3 | import { makeCloudWatchResourceHttpBinding } from "./BindingHttp.ts"; |
| 4 | import { GetInsightRuleReport } from "./GetInsightRuleReport.ts"; |
| 5 | import type { InsightRule } from "./InsightRule.ts"; |
| 6 | |
| 7 | export const GetInsightRuleReportHttp = Layer.effect( |
| 8 | GetInsightRuleReport, |
| 9 | makeCloudWatchResourceHttpBinding({ |
| 10 | tag: "AWS.CloudWatch.GetInsightRuleReport", |
| 11 | operation: cloudwatch.getInsightRuleReport, |
| 12 | actions: ["cloudwatch:GetInsightRuleReport"], |
| 13 | requestKey: "RuleName", |
| 14 | identifier: (rule: InsightRule) => rule.ruleName, |
| 15 | resourceArn: (rule: InsightRule) => rule.ruleArn, |
| 16 | }), |
| 17 | ); |