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