| 1 | import * as TSW from "@distilled.cloud/aws/timestream-write"; |
| 2 | import * as Layer from "effect/Layer"; |
| 3 | import { makeWriteTableHttpBinding } from "./BindingHttp.ts"; |
| 4 | import { WriteRecords, type WriteRecordsRequest } from "./WriteRecords.ts"; |
| 5 | |
| 6 | export const WriteRecordsHttp = Layer.effect( |
| 7 | WriteRecords, |
| 8 | makeWriteTableHttpBinding({ |
| 9 | tag: "AWS.Timestream.WriteRecords", |
| 10 | operation: TSW.writeRecords, |
| 11 | actions: ["timestream:WriteRecords"], |
| 12 | toRequest: (request: WriteRecordsRequest, names) => ({ |
| 13 | ...request, |
| 14 | ...names, |
| 15 | }), |
| 16 | }), |
| 17 | ); |