@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, 04:45 UTC

main
ts 19 lines 659 Bytes
Raw
1 import * as appsync from "@distilled.cloud/aws/appsync";
2 import * as Layer from "effect/Layer";
3 import { makeAppSyncAccountHttpBinding } from "./BindingHttp.ts";
4 import { EvaluateCode } from "./EvaluateCode.ts";
5
6 /**
7 * HTTP implementation of the {@link EvaluateCode} binding. Calls
8 * `appsync:EvaluateCode` with the host Function's IAM role. The action
9 * defines no IAM resource types, so the grant is necessarily
10 * `Resource: "*"`.
11 */
12 export const EvaluateCodeHttp = Layer.effect(
13 EvaluateCode,
14 makeAppSyncAccountHttpBinding({
15 tag: "AWS.AppSync.EvaluateCode",
16 actions: ["appsync:EvaluateCode"],
17 operation: appsync.evaluateCode,
18 }),
19 );