CreateWhatIfForecastExport
Source:
src/AWS/Forecast/CreateWhatIfForecastExport.ts
Runtime binding for forecast:CreateWhatIfForecastExport — export one or
more scenario forecasts to S3 as CSV/Parquet so they can be compared
offline or fed into downstream analytics.
What-if forecast export ARNs are created at runtime, so the binding takes
no arguments and grants forecast:CreateWhatIfForecastExport on *, plus
iam:PassRole (conditioned to forecast.amazonaws.com) for the export
destination role. Provide the implementation with
Effect.provide(AWS.Forecast.CreateWhatIfForecastExportHttp).
Exporting Forecasts
Section titled “Exporting Forecasts”// initconst createWhatIfForecastExport = yield* AWS.Forecast.CreateWhatIfForecastExport();
// runtimeconst job = yield* createWhatIfForecastExport({ WhatIfForecastExportName: "promo_scenarios_export", WhatIfForecastArns: [scenarioArn], Destination: { S3Config: { Path: "s3://my-bucket/whatif/", RoleArn: exportRoleArn }, },});