| 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 { DeleteEvent } from "./DeleteEvent.ts"; |
| 5 | import type { Memory } from "./Memory.ts"; |
| 6 | |
| 7 | export const DeleteEventHttp = Layer.effect( |
| 8 | DeleteEvent, |
| 9 | makeAgentCoreHttpBinding({ |
| 10 | tag: "AWS.BedrockAgentCore.DeleteEvent", |
| 11 | operation: agentcore.deleteEvent, |
| 12 | actions: ["bedrock-agentcore:DeleteEvent"], |
| 13 | requestKey: "memoryId", |
| 14 | identifier: (memory: Memory) => memory.memoryId, |
| 15 | arns: (memory: Memory) => [memory.memoryArn], |
| 16 | }), |
| 17 | ); |