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