| 1 | import * as forecast from "@distilled.cloud/aws/forecast"; |
| 2 | import * as Layer from "effect/Layer"; |
| 3 | import { makeForecastHttpBinding } from "./BindingHttp.ts"; |
| 4 | import { CreateWhatIfForecast } from "./CreateWhatIfForecast.ts"; |
| 5 | |
| 6 | export const CreateWhatIfForecastHttp = Layer.effect( |
| 7 | CreateWhatIfForecast, |
| 8 | makeForecastHttpBinding({ |
| 9 | capability: "CreateWhatIfForecast", |
| 10 | iamActions: ["forecast:CreateWhatIfForecast"], |
| 11 | operation: forecast.createWhatIfForecast, |
| 12 | // TimeSeriesReplacementsDataSource hands Forecast a role to read S3. |
| 13 | passRole: true, |
| 14 | }), |
| 15 | ); |