1import * as agentcore from "@distilled.cloud/aws/bedrock-agentcore";
2import * as Layer from "effect/Layer";
3import { makeAgentCoreHttpBinding } from "./BindingHttp.ts";
4import { SaveBrowserSessionProfile } from "./SaveBrowserSessionProfile.ts";
5import type { BrowserCustom } from "./BrowserCustom.ts";
6
7export const SaveBrowserSessionProfileHttp = Layer.effect(
8 SaveBrowserSessionProfile,
9 makeAgentCoreHttpBinding({
10 tag: "AWS.BedrockAgentCore.SaveBrowserSessionProfile",
11 operation: agentcore.saveBrowserSessionProfile,
12 actions: ["bedrock-agentcore:SaveBrowserSessionProfile"],
13 requestKey: "browserIdentifier",
14 identifier: (browser: BrowserCustom) => browser.browserId,
15 arns: (browser: BrowserCustom) => [browser.browserArn],
16 }),
17);