@devries-cameron20 / t3code Mirror · read-only
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 21, 06:00 UTC

main
ts 17 lines 689 Bytes
Raw
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 );