@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 22 lines 897 Bytes
Raw
1 import * as agentcore from "@distilled.cloud/aws/bedrock-agentcore";
2 import * as Output from "alchemy/Output";
3 import * as Layer from "effect/Layer";
4 import { makeAgentCoreHttpBinding } from "./BindingHttp.ts";
5 import type { Runtime } from "./Runtime.ts";
6 import { StopRuntimeSession } from "./StopRuntimeSession.ts";
7
8 export const StopRuntimeSessionHttp = Layer.effect(
9 StopRuntimeSession,
10 makeAgentCoreHttpBinding({
11 tag: "AWS.BedrockAgentCore.StopRuntimeSession",
12 operation: agentcore.stopRuntimeSession,
13 actions: ["bedrock-agentcore:StopRuntimeSession"],
14 requestKey: "agentRuntimeArn",
15 identifier: (runtime: Runtime) => runtime.agentRuntimeArn,
16 arns: (runtime: Runtime) => [
17 runtime.agentRuntimeArn,
18 // qualified invocations target a runtime endpoint sub-resource.
19 Output.interpolate`${runtime.agentRuntimeArn}/runtime-endpoint/*`,
20 ],
21 }),
22 );