| 1 | import * as cloudwatch from "@distilled.cloud/aws/cloudwatch"; |
| 2 | import * as Layer from "effect/Layer"; |
| 3 | import { makeCloudWatchResourceHttpBinding } from "./BindingHttp.ts"; |
| 4 | import type { Dashboard } from "./Dashboard.ts"; |
| 5 | import { GetDashboard } from "./GetDashboard.ts"; |
| 6 | |
| 7 | export const GetDashboardHttp = Layer.effect( |
| 8 | GetDashboard, |
| 9 | makeCloudWatchResourceHttpBinding({ |
| 10 | tag: "AWS.CloudWatch.GetDashboard", |
| 11 | operation: cloudwatch.getDashboard, |
| 12 | actions: ["cloudwatch:GetDashboard"], |
| 13 | requestKey: "DashboardName", |
| 14 | identifier: (dashboard: Dashboard) => dashboard.dashboardName, |
| 15 | resourceArn: (dashboard: Dashboard) => dashboard.dashboardArn, |
| 16 | }), |
| 17 | ); |