sailfork / t3code-github / .repos/ alchemy-effect/ packages/ aws/ src/ Comprehend/ ListSentimentDetectionJobs.ts

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

/**
 * Runtime binding for `comprehend:ListSentimentDetectionJobs` — list the account's
 * asynchronous sentiment detection jobs, with optional status/name/time filters.
 *
 * The binding takes no arguments and grants the action on `*` (job APIs
 * have no resource-level IAM).
 *
 * ### Monitoring Analysis Jobs
 * **Example:** List Recent SentimentDetection Jobs
 * ```typescript
 * // init
 * const listSentimentDetectionJobs = yield* AWS.Comprehend.ListSentimentDetectionJobs();
 *
 * // runtime
 * const page = yield* listSentimentDetectionJobs({
 *   Filter: { JobStatus: "IN_PROGRESS" },
 *   MaxResults: 25,
 * });
 * // page.SentimentDetectionJobPropertiesList
 * ```
 *
 * @binding
 */
export interface ListSentimentDetectionJobs extends Binding.Service<
  ListSentimentDetectionJobs,
  "AWS.Comprehend.ListSentimentDetectionJobs",
  () => Effect.Effect<
    (
      request?: comprehend.ListSentimentDetectionJobsRequest,
    ) => Effect.Effect<
      comprehend.ListSentimentDetectionJobsResponse,
      comprehend.ListSentimentDetectionJobsError
    >
  >
> {}
export const ListSentimentDetectionJobs = Binding.Service<ListSentimentDetectionJobs>(
  "AWS.Comprehend.ListSentimentDetectionJobs",
);