| 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 { makeCloudWatchResourceSetHttpBinding } from "./BindingHttp.ts"; |
| 5 | import { DisableAlarmActions } from "./DisableAlarmActions.ts"; |
| 6 | |
| 7 | export const DisableAlarmActionsHttp = Layer.effect( |
| 8 | DisableAlarmActions, |
| 9 | makeCloudWatchResourceSetHttpBinding({ |
| 10 | tag: "AWS.CloudWatch.DisableAlarmActions", |
| 11 | operation: cloudwatch.disableAlarmActions, |
| 12 | action: "cloudwatch:DisableAlarmActions", |
| 13 | namesKey: "AlarmNames", |
| 14 | name: (alarm: AlarmResource) => alarm.alarmName, |
| 15 | arn: (alarm: AlarmResource) => alarm.alarmArn, |
| 16 | }), |
| 17 | ); |