Skip to content

DescribeForecast

Source: src/AWS/Forecast/DescribeForecast.ts

Runtime binding for forecast:DescribeForecast — poll a forecast generation started by CreateForecast until its Status reaches ACTIVE and it becomes queryable.

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

// init
const describeForecast = yield* AWS.Forecast.DescribeForecast();
// runtime
const detail = yield* describeForecast({
ForecastArn: generated.ForecastArn!,
});
yield* Effect.log(`forecast ${detail.Status}`);