| 1 | import type * as comprehend from "@distilled.cloud/aws/comprehend"; |
| 2 | import type * as Effect from "effect/Effect"; |
| 3 | import * as Binding from "../../Binding.ts"; |
| 4 | |
| 5 | /** |
| 6 | * Runtime binding for `comprehend:ListTargetedSentimentDetectionJobs` — list the account's |
| 7 | * asynchronous targeted-sentiment detection jobs, with optional status/name/time filters. |
| 8 | * |
| 9 | * The binding takes no arguments and grants the action on `*` (job APIs |
| 10 | * have no resource-level IAM). |
| 11 | * |
| 12 | * ### Monitoring Analysis Jobs |
| 13 | * **Example:** List Recent TargetedSentimentDetection Jobs |
| 14 | * ```typescript |
| 15 | * // init |
| 16 | * const listTargetedSentimentDetectionJobs = yield* AWS.Comprehend.ListTargetedSentimentDetectionJobs(); |
| 17 | * |
| 18 | * // runtime |
| 19 | * const page = yield* listTargetedSentimentDetectionJobs({ |
| 20 | * Filter: { JobStatus: "IN_PROGRESS" }, |
| 21 | * MaxResults: 25, |
| 22 | * }); |
| 23 | * // page.TargetedSentimentDetectionJobPropertiesList |
| 24 | * ``` |
| 25 | * |
| 26 | * @binding |
| 27 | */ |
| 28 | export interface ListTargetedSentimentDetectionJobs extends Binding.Service< |
| 29 | ListTargetedSentimentDetectionJobs, |
| 30 | "AWS.Comprehend.ListTargetedSentimentDetectionJobs", |
| 31 | () => Effect.Effect< |
| 32 | ( |
| 33 | request?: comprehend.ListTargetedSentimentDetectionJobsRequest, |
| 34 | ) => Effect.Effect< |
| 35 | comprehend.ListTargetedSentimentDetectionJobsResponse, |
| 36 | comprehend.ListTargetedSentimentDetectionJobsError |
| 37 | > |
| 38 | > |
| 39 | > {} |
| 40 | export const ListTargetedSentimentDetectionJobs = |
| 41 | Binding.Service<ListTargetedSentimentDetectionJobs>( |
| 42 | "AWS.Comprehend.ListTargetedSentimentDetectionJobs", |
| 43 | ); |