The best way to control Claude Code, Codex and more from any computer or phone
| 1 | import * as featurestore from "@distilled.cloud/aws/sagemaker-featurestore-runtime"; |
| 2 | import * as Layer from "effect/Layer"; |
| 3 | import { BatchGetRecord, type BatchGetRecordRequest } from "./BatchGetRecord.ts"; |
| 4 | import { makeFeatureGroupHttpBinding } from "./BindingHttp.ts"; |
| 5 | |
| 6 | export const BatchGetRecordHttp = Layer.effect( |
| 7 | BatchGetRecord, |
| 8 | makeFeatureGroupHttpBinding({ |
| 9 | tag: "AWS.SageMaker.BatchGetRecord", |
| 10 | operation: featurestore.batchGetRecord, |
| 11 | actions: ["sagemaker:BatchGetRecord"], |
| 12 | // The wire request identifies feature groups per identifier batch — scope |
| 13 | // the whole batch to the bound feature group. |
| 14 | prepare: (request: BatchGetRecordRequest, featureGroupName) => ({ |
| 15 | Identifiers: [ |
| 16 | { |
| 17 | FeatureGroupName: featureGroupName, |
| 18 | RecordIdentifiersValueAsString: request.RecordIdentifiersValueAsString, |
| 19 | FeatureNames: request.FeatureNames, |
| 20 | }, |
| 21 | ], |
| 22 | ExpirationTimeResponse: request.ExpirationTimeResponse, |
| 23 | }), |
| 24 | }), |
| 25 | ); |