| 1 | import * as cloudwatch from "@distilled.cloud/aws/cloudwatch"; |
| 2 | import * as Layer from "effect/Layer"; |
| 3 | import type { AlarmResource } from "./binding-common.ts"; |
| 4 | import { makeCloudWatchResourceHttpBinding } from "./BindingHttp.ts"; |
| 5 | import { DescribeAlarmContributors } from "./DescribeAlarmContributors.ts"; |
| 6 | |
| 7 | export const DescribeAlarmContributorsHttp = Layer.effect( |
| 8 | DescribeAlarmContributors, |
| 9 | makeCloudWatchResourceHttpBinding({ |
| 10 | tag: "AWS.CloudWatch.DescribeAlarmContributors", |
| 11 | operation: cloudwatch.describeAlarmContributors, |
| 12 | actions: ["cloudwatch:DescribeAlarmContributors"], |
| 13 | requestKey: "AlarmName", |
| 14 | identifier: (alarm: AlarmResource) => alarm.alarmName, |
| 15 | resourceArn: (alarm: AlarmResource) => alarm.alarmArn, |
| 16 | }), |
| 17 | ); |