1import * as agentcore from "@distilled.cloud/aws/bedrock-agentcore";
2import * as Layer from "effect/Layer";
3import { makeAgentCoreHttpBinding } from "./BindingHttp.ts";
4import { GetCodeInterpreterSession } from "./GetCodeInterpreterSession.ts";
5import type { CodeInterpreter } from "./CodeInterpreter.ts";
6
7export const GetCodeInterpreterSessionHttp = Layer.effect(
8 GetCodeInterpreterSession,
9 makeAgentCoreHttpBinding({
10 tag: "AWS.BedrockAgentCore.GetCodeInterpreterSession",
11 operation: agentcore.getCodeInterpreterSession,
12 actions: ["bedrock-agentcore:GetCodeInterpreterSession"],
13 requestKey: "codeInterpreterIdentifier",
14 identifier: (codeInterpreter: CodeInterpreter) =>
15 codeInterpreter.codeInterpreterId,
16 arns: (codeInterpreter: CodeInterpreter) => [
17 codeInterpreter.codeInterpreterArn,
18 ],
19 }),
20);