@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 22 lines 884 Bytes
Raw
1 import * as featurestore from "@distilled.cloud/aws/sagemaker-featurestore-runtime";
2 import * as Layer from "effect/Layer";
3 import { BatchWriteRecord, type BatchWriteRecordRequest } from "./BatchWriteRecord.ts";
4 import { makeFeatureGroupHttpBinding } from "./BindingHttp.ts";
5
6 export const BatchWriteRecordHttp = Layer.effect(
7 BatchWriteRecord,
8 makeFeatureGroupHttpBinding({
9 tag: "AWS.SageMaker.BatchWriteRecord",
10 operation: featurestore.batchWriteRecord,
11 actions: ["sagemaker:BatchWriteRecord"],
12 // The wire request identifies the feature group per entry — scope every
13 // entry to the bound feature group.
14 prepare: (request: BatchWriteRecordRequest, featureGroupName) => ({
15 Entries: request.Entries.map((entry) => ({
16 ...entry,
17 FeatureGroupName: featureGroupName,
18 })),
19 TtlDuration: request.TtlDuration,
20 }),
21 }),
22 );