| 1 | import type * as mediaconvert from "@distilled.cloud/aws/mediaconvert"; |
| 2 | import type * as Effect from "effect/Effect"; |
| 3 | import * as Binding from "../../Binding.ts"; |
| 4 | |
| 5 | /** |
| 6 | * Runtime binding for `mediaconvert:StartJobsQuery` — start an asynchronous, |
| 7 | * filtered query over your job history (the async counterpart of |
| 8 | * `SearchJobs` for larger result sets). Retrieve the results with |
| 9 | * {@link GetJobsQueryResults} using the returned query `Id`. |
| 10 | * |
| 11 | * The binding takes no arguments and grants `mediaconvert:StartJobsQuery` |
| 12 | * on `*`. Provide the implementation with |
| 13 | * `Effect.provide(AWS.MediaConvert.StartJobsQueryHttp)`. |
| 14 | * |
| 15 | * ### Tracking Jobs |
| 16 | * **Example:** Query Errored Jobs |
| 17 | * ```typescript |
| 18 | * // init |
| 19 | * const startJobsQuery = yield* AWS.MediaConvert.StartJobsQuery(); |
| 20 | * |
| 21 | * // runtime |
| 22 | * const { Id } = yield* startJobsQuery({ |
| 23 | * FilterList: [{ Type: "STATUS", Inputs: ["ERROR"] }], |
| 24 | * }); |
| 25 | * ``` |
| 26 | * |
| 27 | * @binding |
| 28 | */ |
| 29 | export interface StartJobsQuery extends Binding.Service< |
| 30 | StartJobsQuery, |
| 31 | "AWS.MediaConvert.StartJobsQuery", |
| 32 | () => Effect.Effect< |
| 33 | ( |
| 34 | request?: mediaconvert.StartJobsQueryRequest, |
| 35 | ) => Effect.Effect< |
| 36 | mediaconvert.StartJobsQueryResponse, |
| 37 | mediaconvert.StartJobsQueryError |
| 38 | > |
| 39 | > |
| 40 | > {} |
| 41 | export const StartJobsQuery = Binding.Service<StartJobsQuery>( |
| 42 | "AWS.MediaConvert.StartJobsQuery", |
| 43 | ); |