Skip to content

DescribeWhatIfForecast

Source: src/AWS/Forecast/DescribeWhatIfForecast.ts

Runtime binding for forecast:DescribeWhatIfForecast — poll the status of a scenario forecast created with CreateWhatIfForecast until it is ACTIVE and queryable via QueryWhatIfForecast.

What-if forecast ARNs are created at runtime, so the binding takes no arguments and grants forecast:DescribeWhatIfForecast on *. Provide the implementation with Effect.provide(AWS.Forecast.DescribeWhatIfForecastHttp).

// init
const describeWhatIfForecast = yield* AWS.Forecast.DescribeWhatIfForecast();
// runtime
const { Status } = yield* describeWhatIfForecast({
WhatIfForecastArn: scenarioArn,
});