Skip to content

PutRecord

Source: src/AWS/SageMaker/PutRecord.ts

Runtime binding for sagemaker:PutRecord — write a record to a FeatureGroup’s online store (and, when configured, its offline store).

Bind this operation to a FeatureGroup inside a function runtime to get a callable that automatically injects the feature group name. Every feature value is passed as a string (ValueAsString) — the feature group’s schema declares the actual types.

// init
const putRecord = yield* AWS.SageMaker.PutRecord(featureGroup);
// runtime
yield* putRecord({
Record: [
{ FeatureName: "user_id", ValueAsString: "user-123" },
{ FeatureName: "event_time", ValueAsString: new Date().toISOString() },
{ FeatureName: "clicks", ValueAsString: "42" },
],
});