@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 758 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 { EvaluateMappingTemplate } from "./EvaluateMappingTemplate.ts";
5
6 /**
7 * HTTP implementation of the {@link EvaluateMappingTemplate} binding. Calls
8 * `appsync:EvaluateMappingTemplate` with the host Function's IAM role. The
9 * action defines no IAM resource types, so the grant is necessarily
10 * `Resource: "*"`.
11 */
12 export const EvaluateMappingTemplateHttp = Layer.effect(
13 EvaluateMappingTemplate,
14 makeAppSyncAccountHttpBinding({
15 tag: "AWS.AppSync.EvaluateMappingTemplate",
16 actions: ["appsync:EvaluateMappingTemplate"],
17 operation: appsync.evaluateMappingTemplate,
18 }),
19 );