Skip to content

BatchWriteRecord

Source: src/AWS/SageMaker/BatchWriteRecord.ts

Runtime binding for sagemaker:BatchWriteRecord — bulk-ingest records into a FeatureGroup’s online (and offline) store in one call.

Bind this operation to a FeatureGroup inside a function runtime to get a callable that automatically scopes every entry to the bound feature group. Per-record failures come back in the response’s Errors / UnprocessedEntries rather than failing the whole call.

// init
const batchWriteRecord = yield* AWS.SageMaker.BatchWriteRecord(featureGroup);
// runtime
const { Errors } = yield* batchWriteRecord({
Entries: [
{
Record: [
{ FeatureName: "user_id", ValueAsString: "user-1" },
{ FeatureName: "event_time", ValueAsString: new Date().toISOString() },
{ FeatureName: "clicks", ValueAsString: "1" },
],
},
],
});