1import type * as entityresolution from "@distilled.cloud/aws/entityresolution";
2import type * as Effect from "effect/Effect";
3import * as Binding from "../../Binding.ts";
4import type { MatchingWorkflow } from "./MatchingWorkflow.ts";
5
6/**
7 * Runtime binding for `entityresolution:StartMatchingJob`.
8 *
9 * Starts a matching job run of the bound workflow — a batch process over the
10 * workflow's full input that takes many minutes. Provide the implementation
11 * with `Effect.provide(AWS.EntityResolution.StartMatchingJobHttp)`.
12 * ### Running Matching Jobs
13 * **Example:** Start a Job
14 * ```typescript
15 * // init — bind the operation to the workflow
16 * const startMatchingJob = yield* AWS.EntityResolution.StartMatchingJob(workflow);
17 *
18 * // runtime
19 * const { jobId } = yield* startMatchingJob({});
20 * ```
21 *
22 * @binding
23 */
24export interface StartMatchingJob extends Binding.Service<
25 StartMatchingJob,
26 "AWS.EntityResolution.StartMatchingJob",
27 (
28 workflow: MatchingWorkflow,
29 ) => Effect.Effect<
30 (
31 request: Omit<entityresolution.StartMatchingJobInput, "workflowName">,
32 ) => Effect.Effect<
33 entityresolution.StartMatchingJobOutput,
34 entityresolution.StartMatchingJobError
35 >
36 >
37> {}
38
39export const StartMatchingJob = Binding.Service<StartMatchingJob>(
40 "AWS.EntityResolution.StartMatchingJob",
41);