CreateAutoPredictor
Source:
src/AWS/Forecast/CreateAutoPredictor.ts
Runtime binding for forecast:CreateAutoPredictor — kick off (re)training
of an AutoPredictor from a dataset group, the scheduled-retraining step of
a grandfathered Forecast deployment. Also grants iam:PassRole
(conditioned to forecast.amazonaws.com) for the KMS-encryption role an
EncryptionConfig passes to the service.
Predictor ARNs are created at runtime, so the binding takes no arguments
and grants forecast:CreateAutoPredictor on *. Provide the
implementation with Effect.provide(AWS.Forecast.CreateAutoPredictorHttp).
Training Predictors
Section titled “Training Predictors”// initconst createAutoPredictor = yield* AWS.Forecast.CreateAutoPredictor();
// runtimeconst predictor = yield* createAutoPredictor({ PredictorName: "demand_2026_07", ForecastHorizon: 14, ForecastFrequency: "D", DataConfig: { DatasetGroupArn: group.datasetGroupArn },});