Skip to content

CreateForecastExportJob

Source: src/AWS/Forecast/CreateForecastExportJob.ts

Runtime binding for forecast:CreateForecastExportJob — export a complete forecast to S3 as CSV/Parquet, the bulk-consumption path that complements per-item lookups via QueryForecast.

Export job ARNs are created at runtime, so the binding takes no arguments and grants forecast:CreateForecastExportJob on *, plus iam:PassRole (conditioned to forecast.amazonaws.com) for the export destination role. Provide the implementation with Effect.provide(AWS.Forecast.CreateForecastExportJobHttp).

// init
const createForecastExportJob = yield* AWS.Forecast.CreateForecastExportJob();
// runtime
const job = yield* createForecastExportJob({
ForecastExportJobName: "demand_2026_07_14_export",
ForecastArn: forecastArn,
Destination: {
S3Config: { Path: "s3://my-bucket/forecasts/", RoleArn: exportRoleArn },
},
});