Skip to content

DescribeWhatIfAnalysis

Source: src/AWS/Forecast/DescribeWhatIfAnalysis.ts

Runtime binding for forecast:DescribeWhatIfAnalysis — poll the status of a what-if analysis created with CreateWhatIfAnalysis until it is ACTIVE and scenario forecasts can be created under it.

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

// init
const describeWhatIfAnalysis = yield* AWS.Forecast.DescribeWhatIfAnalysis();
// runtime
const { Status } = yield* describeWhatIfAnalysis({
WhatIfAnalysisArn: analysisArn,
});