Open-source Grok Bot alternative for named AI teammates. Local-first desktop, web, and mobile clients with per-bot tools, instructions, and memory. Independent fork of T3 Code.
import type * as forecast from "@distilled.cloud/aws/forecast";
import type * as Effect from "effect/Effect";
import * as Binding from "../../Binding.ts";
/**
* Runtime binding for `forecast:DescribeWhatIfForecast` — poll the status of
* a scenario forecast created with {@link CreateWhatIfForecast} until it is
* `ACTIVE` and queryable via {@link 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)`.
*
* @binding
* @section What-If Scenarios
* @example Poll a Scenario Forecast
* ```typescript
* // init
* const describeWhatIfForecast = yield* AWS.Forecast.DescribeWhatIfForecast();
*
* // runtime
* const { Status } = yield* describeWhatIfForecast({
* WhatIfForecastArn: scenarioArn,
* });
* ```
*/
export interface DescribeWhatIfForecast extends Binding.Service<
DescribeWhatIfForecast,
"AWS.Forecast.DescribeWhatIfForecast",
() => Effect.Effect<
(
request: forecast.DescribeWhatIfForecastRequest,
) => Effect.Effect<
forecast.DescribeWhatIfForecastResponse,
forecast.DescribeWhatIfForecastError
>
>
> {}
export const DescribeWhatIfForecast = Binding.Service<DescribeWhatIfForecast>(
"AWS.Forecast.DescribeWhatIfForecast",
);