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
| 1 | import * as rdsdata from "@distilled.cloud/aws/rds-data"; |
| 2 | import * as Layer from "effect/Layer"; |
| 3 | import { makeRDSDataHttpBinding } from "./BindingHttp.ts"; |
| 4 | import { ExecuteStatement, type ExecuteStatementRequest } from "./ExecuteStatement.ts"; |
| 5 | |
| 6 | export const ExecuteStatementHttp = Layer.effect( |
| 7 | ExecuteStatement, |
| 8 | makeRDSDataHttpBinding({ |
| 9 | tag: "AWS.RDSData.ExecuteStatement", |
| 10 | action: "rds-data:ExecuteStatement", |
| 11 | operation: rdsdata.executeStatement, |
| 12 | makeInput: ( |
| 13 | request: ExecuteStatementRequest, |
| 14 | { resourceArn, secretArn, database, schema }, |
| 15 | ): rdsdata.ExecuteStatementRequest => ({ |
| 16 | ...request, |
| 17 | resourceArn, |
| 18 | secretArn, |
| 19 | database, |
| 20 | schema, |
| 21 | }), |
| 22 | }), |
| 23 | ); |