sailfork / t3code-github / .repos/ alchemy-effect/ packages/ aws/ src/ Location/ ListJobs.ts

import type * as location from "@distilled.cloud/aws/location";
import * as Binding from "alchemy/Binding";
import type * as Effect from "effect/Effect";

/**
 * Lists the account's Location batch metadata jobs (e.g. batch address validation jobs).
 *
 * Runtime binding for the `ListJobs` operation (IAM action
 * `geo:ListJobs`), account-scoped — batch jobs are created at runtime so the
 * grant is on `*`. Provide the implementation with
 * `Effect.provide(AWS.Location.ListJobsHttp)`.
 *
 * ### Managing Batch Jobs
 * **Example:** List Batch Jobs
 * ```typescript
 * const listJobs = yield* Location.ListJobs();
 *
 * const page = yield* listJobs();
 * // page.Entries → [{ JobId, Status, Action }, …]
 * ```
 *
 * @binding
 */
export interface ListJobs extends Binding.Service<
  ListJobs,
  "AWS.Location.ListJobs",
  () => Effect.Effect<
    (
      request?: location.ListJobsRequest,
    ) => Effect.Effect<location.ListJobsResponse, location.ListJobsError>
  >
> {}
export const ListJobs = Binding.Service<ListJobs>("AWS.Location.ListJobs");