sailfork / t3code-github / .repos/ alchemy-effect/ packages/ aws/ src/ EntityResolution/ ListIdMappingJobs.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 { IdMappingWorkflow } from "./IdMappingWorkflow.ts";

/**
 * Runtime binding for `entityresolution:ListIdMappingJobs`.
 *
 * Lists the ID mapping job runs of the bound workflow. Provide the
 * implementation with `Effect.provide(AWS.EntityResolution.ListIdMappingJobsHttp)`.
 * ### Running ID Mapping Jobs
 * **Example:** List Recent Jobs
 * ```typescript
 * // init — bind the operation to the workflow
 * const listIdMappingJobs = yield* AWS.EntityResolution.ListIdMappingJobs(workflow);
 *
 * // runtime
 * const { jobs } = yield* listIdMappingJobs({});
 * ```
 *
 * @binding
 */
export interface ListIdMappingJobs extends Binding.Service<
  ListIdMappingJobs,
  "AWS.EntityResolution.ListIdMappingJobs",
  (
    workflow: IdMappingWorkflow,
  ) => Effect.Effect<
    (
      request: Omit<entityresolution.ListIdMappingJobsInput, "workflowName">,
    ) => Effect.Effect<
      entityresolution.ListIdMappingJobsOutput,
      entityresolution.ListIdMappingJobsError
    >
  >
> {}

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