Skip to content

AcceptPredictions

Source: src/AWS/DataZone/AcceptPredictions.ts

Runtime binding for datazone:AcceptPredictions.

Accepts ML-generated metadata predictions (business-name suggestions) on an asset in the bound domain. The domain id is injected from the binding. Provide the implementation with Effect.provide(AWS.DataZone.AcceptPredictionsHttp).

// init — bind the operation to the domain
const acceptPredictions = yield* AWS.DataZone.AcceptPredictions(domain);
// runtime
yield* acceptPredictions({ identifier: assetId, acceptRule: { rule: "ALL" } });