| 1 | import type * as forecast from "@distilled.cloud/aws/forecast"; |
| 2 | import type * as Effect from "effect/Effect"; |
| 3 | import * as Binding from "../../Binding.ts"; |
| 4 | |
| 5 | /** |
| 6 | * Runtime binding for `forecast:DeleteResourceTree` — delete an entire tree |
| 7 | * of runtime-created Forecast resources (a predictor and its forecasts and |
| 8 | * exports, or a dataset's import jobs) in a single call, the cost-hygiene |
| 9 | * counterpart to the `Create*` bindings. |
| 10 | * |
| 11 | * The target ARNs are created at runtime, so the binding takes no arguments |
| 12 | * and grants `forecast:DeleteResourceTree` on `*`. Provide the implementation |
| 13 | * with `Effect.provide(AWS.Forecast.DeleteResourceTreeHttp)`. |
| 14 | * |
| 15 | * ### Cleaning Up |
| 16 | * **Example:** Delete a Predictor's Artifact Tree |
| 17 | * ```typescript |
| 18 | * // init |
| 19 | * const deleteResourceTree = yield* AWS.Forecast.DeleteResourceTree(); |
| 20 | * |
| 21 | * // runtime |
| 22 | * yield* deleteResourceTree({ ResourceArn: predictorArn }); |
| 23 | * ``` |
| 24 | * |
| 25 | * @binding |
| 26 | */ |
| 27 | export interface DeleteResourceTree extends Binding.Service< |
| 28 | DeleteResourceTree, |
| 29 | "AWS.Forecast.DeleteResourceTree", |
| 30 | () => Effect.Effect< |
| 31 | ( |
| 32 | request: forecast.DeleteResourceTreeRequest, |
| 33 | ) => Effect.Effect< |
| 34 | forecast.DeleteResourceTreeResponse, |
| 35 | forecast.DeleteResourceTreeError |
| 36 | > |
| 37 | > |
| 38 | > {} |
| 39 | export const DeleteResourceTree = Binding.Service<DeleteResourceTree>( |
| 40 | "AWS.Forecast.DeleteResourceTree", |
| 41 | ); |