| 1 | import type * as entityresolution from "@distilled.cloud/aws/entityresolution"; |
| 2 | import type * as Effect from "effect/Effect"; |
| 3 | import * as Binding from "../../Binding.ts"; |
| 4 | import type { MatchingWorkflow } from "./MatchingWorkflow.ts"; |
| 5 | |
| 6 | /** |
| 7 | * Runtime binding for `entityresolution:ListMatchingJobs`. |
| 8 | * |
| 9 | * Lists the matching job runs of the bound workflow. Provide the |
| 10 | * implementation with `Effect.provide(AWS.EntityResolution.ListMatchingJobsHttp)`. |
| 11 | * ### Running Matching Jobs |
| 12 | * **Example:** List Recent Jobs |
| 13 | * ```typescript |
| 14 | * // init — bind the operation to the workflow |
| 15 | * const listMatchingJobs = yield* AWS.EntityResolution.ListMatchingJobs(workflow); |
| 16 | * |
| 17 | * // runtime |
| 18 | * const { jobs } = yield* listMatchingJobs({}); |
| 19 | * ``` |
| 20 | * |
| 21 | * @binding |
| 22 | */ |
| 23 | export interface ListMatchingJobs extends Binding.Service< |
| 24 | ListMatchingJobs, |
| 25 | "AWS.EntityResolution.ListMatchingJobs", |
| 26 | ( |
| 27 | workflow: MatchingWorkflow, |
| 28 | ) => Effect.Effect< |
| 29 | ( |
| 30 | request: Omit<entityresolution.ListMatchingJobsInput, "workflowName">, |
| 31 | ) => Effect.Effect< |
| 32 | entityresolution.ListMatchingJobsOutput, |
| 33 | entityresolution.ListMatchingJobsError |
| 34 | > |
| 35 | > |
| 36 | > {} |
| 37 | |
| 38 | export const ListMatchingJobs = Binding.Service<ListMatchingJobs>( |
| 39 | "AWS.EntityResolution.ListMatchingJobs", |
| 40 | ); |