| 1 | import type * as quicksight from "@distilled.cloud/aws/quicksight"; |
| 2 | import type * as Effect from "effect/Effect"; |
| 3 | import * as Binding from "../../Binding.ts"; |
| 4 | import type { DataSet } from "./DataSet.ts"; |
| 5 | |
| 6 | /** |
| 7 | * Runtime binding for `quicksight:CancelIngestion`. |
| 8 | * |
| 9 | * Cancels an in-flight SPICE ingestion on the bound {@link DataSet}. |
| 10 | * `AwsAccountId` and `DataSetId` are injected from the binding. Provide the |
| 11 | * implementation with `Effect.provide(AWS.QuickSight.CancelIngestionHttp)`. |
| 12 | * ### Refreshing SPICE Data |
| 13 | * **Example:** Cancel A Running Refresh |
| 14 | * ```typescript |
| 15 | * // init — bind the operation to the dataset |
| 16 | * const cancelIngestion = yield* AWS.QuickSight.CancelIngestion(dataSet); |
| 17 | * |
| 18 | * // runtime |
| 19 | * yield* cancelIngestion({ IngestionId: ingestionId }); |
| 20 | * ``` |
| 21 | * |
| 22 | * @binding |
| 23 | */ |
| 24 | export interface CancelIngestion extends Binding.Service< |
| 25 | CancelIngestion, |
| 26 | "AWS.QuickSight.CancelIngestion", |
| 27 | ( |
| 28 | dataSet: DataSet, |
| 29 | ) => Effect.Effect< |
| 30 | ( |
| 31 | request: Omit< |
| 32 | quicksight.CancelIngestionRequest, |
| 33 | "AwsAccountId" | "DataSetId" |
| 34 | >, |
| 35 | ) => Effect.Effect< |
| 36 | quicksight.CancelIngestionResponse, |
| 37 | quicksight.CancelIngestionError |
| 38 | > |
| 39 | > |
| 40 | > {} |
| 41 | export const CancelIngestion = Binding.Service<CancelIngestion>( |
| 42 | "AWS.QuickSight.CancelIngestion", |
| 43 | ); |