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

main
ts 41 lines 1.49 KB
Raw
1 import type * as xray from "@distilled.cloud/aws/xray";
2 import * as Binding from "alchemy/Binding";
3 import type * as Effect from "effect/Effect";
4
5 export interface GetRetrievedTracesGraphRequest extends xray.GetRetrievedTracesGraphRequest {}
6
7 /**
8 * Retrieve the service graph of the traces fetched by a Transaction
9 * Search retrieval job.
10 *
11 * Bind the operation in the function's init phase to get a runtime callable;
12 * provide the implementation with `Effect.provide(XRay.GetRetrievedTracesGraphHttp)`.
13 * The action is account-scoped: X-Ray does not support resource-level
14 * permissions for `xray:GetRetrievedTracesGraph`, so the binding grants it on `*`.
15 * ### Transaction Search
16 * **Example:** Graph a retrieval job's traces
17 * ```typescript
18 * import * as XRay from "@alchemy.run/aws/XRay";
19 *
20 * // init — grants xray:GetRetrievedTracesGraph
21 * const getRetrievedTracesGraph = yield* XRay.GetRetrievedTracesGraph();
22 *
23 * // runtime
24 * const graph = yield* getRetrievedTracesGraph({ RetrievalToken: token });
25 * const services = graph.Services ?? [];
26 * ```
27 *
28 * @binding
29 */
30 export interface GetRetrievedTracesGraph extends Binding.Service<
31 GetRetrievedTracesGraph,
32 "AWS.XRay.GetRetrievedTracesGraph",
33 () => Effect.Effect<
34 (
35 request: GetRetrievedTracesGraphRequest,
36 ) => Effect.Effect<xray.GetRetrievedTracesGraphResult, xray.GetRetrievedTracesGraphError>
37 >
38 > {}
39 export const GetRetrievedTracesGraph = Binding.Service<GetRetrievedTracesGraph>(
40 "AWS.XRay.GetRetrievedTracesGraph",
41 );