sailfork / t3code-github / .repos/ alchemy-effect/ packages/ aws/ src/ EntityResolution/ ListMatchingJobs.ts

import type * as entityresolution from "@distilled.cloud/aws/entityresolution";
import * as Binding from "alchemy/Binding";
import type * as Effect from "effect/Effect";
import type { MatchingWorkflow } from "./MatchingWorkflow.ts";

/**
 * Runtime binding for `entityresolution:ListMatchingJobs`.
 *
 * Lists the matching job runs of the bound workflow. Provide the
 * implementation with `Effect.provide(AWS.EntityResolution.ListMatchingJobsHttp)`.
 * ### Running Matching Jobs
 * **Example:** List Recent Jobs
 * ```typescript
 * // init — bind the operation to the workflow
 * const listMatchingJobs = yield* AWS.EntityResolution.ListMatchingJobs(workflow);
 *
 * // runtime
 * const { jobs } = yield* listMatchingJobs({});
 * ```
 *
 * @binding
 */
export interface ListMatchingJobs extends Binding.Service<
  ListMatchingJobs,
  "AWS.EntityResolution.ListMatchingJobs",
  (
    workflow: MatchingWorkflow,
  ) => Effect.Effect<
    (
      request: Omit<entityresolution.ListMatchingJobsInput, "workflowName">,
    ) => Effect.Effect<
      entityresolution.ListMatchingJobsOutput,
      entityresolution.ListMatchingJobsError
    >
  >
> {}

export const ListMatchingJobs = Binding.Service<ListMatchingJobs>(
  "AWS.EntityResolution.ListMatchingJobs",
);