@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 31 lines 943 Bytes
Raw
1 import * as xray from "@distilled.cloud/aws/xray";
2 import * as Layer from "effect/Layer";
3 import { makeXRayHttpBinding } from "./BindingHttp.ts";
4 import { GetInsight } from "./GetInsight.ts";
5
6 /**
7 * HTTP implementation of the `XRay.GetInsight` binding.
8 *
9 * At deploy time it grants `xray:GetInsight` on `*` to the host Lambda
10 * Function (the action does not support resource-level permissions); at
11 * runtime it calls the X-Ray API with the function's execution role
12 * credentials.
13 *
14 * @example Provide on the Function effect
15 * ```typescript
16 * import * as XRay from "@alchemy.run/aws/XRay";
17 *
18 * Effect.gen(function* () {
19 * const getInsight = yield* XRay.GetInsight();
20 * // ...
21 * }).pipe(Effect.provide(XRay.GetInsightHttp));
22 * ```
23 */
24 export const GetInsightHttp = Layer.effect(
25 GetInsight,
26 makeXRayHttpBinding({
27 tag: "AWS.XRay.GetInsight",
28 operation: xray.getInsight,
29 actions: ["xray:GetInsight"],
30 }),
31 );