@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 23 lines 735 Bytes
Raw
1 import * as rdsdata from "@distilled.cloud/aws/rds-data";
2 import * as Layer from "effect/Layer";
3 import { BeginTransaction } from "./BeginTransaction.ts";
4 import { makeRDSDataHttpBinding } from "./BindingHttp.ts";
5
6 export const BeginTransactionHttp = Layer.effect(
7 BeginTransaction,
8 makeRDSDataHttpBinding({
9 tag: "AWS.RDSData.BeginTransaction",
10 action: "rds-data:BeginTransaction",
11 operation: rdsdata.beginTransaction,
12 // the runtime callable takes no request — everything comes from bind time
13 makeInput: (
14 _request: void,
15 { resourceArn, secretArn, database, schema },
16 ): rdsdata.BeginTransactionRequest => ({
17 resourceArn,
18 secretArn,
19 database,
20 schema,
21 }),
22 }),
23 );