1import type * as comprehend from "@distilled.cloud/aws/comprehend";
2import type * as Effect from "effect/Effect";
3import * as Binding from "../../Binding.ts";
4
5/**
6 * Runtime binding for `comprehend:DetectKeyPhrases` — extract the key noun
7 * phrases of the input text with confidence scores and offsets.
8 *
9 * The binding takes no arguments and grants the action on `*` (the action
10 * has no resource-level IAM).
11 *
12 * ### Real-Time Analysis
13 * **Example:** Extract Key Phrases
14 * ```typescript
15 * // init
16 * const detectKeyPhrases = yield* AWS.Comprehend.DetectKeyPhrases();
17 *
18 * // runtime
19 * const result = yield* detectKeyPhrases({
20 * Text: "The quarterly earnings report exceeded analyst expectations.",
21 * LanguageCode: "en",
22 * });
23 * // result.KeyPhrases: [{ Text: "The quarterly earnings report" }, …]
24 * ```
25 *
26 * @binding
27 */
28export interface DetectKeyPhrases extends Binding.Service<
29 DetectKeyPhrases,
30 "AWS.Comprehend.DetectKeyPhrases",
31 () => Effect.Effect<
32 (
33 request: comprehend.DetectKeyPhrasesRequest,
34 ) => Effect.Effect<
35 comprehend.DetectKeyPhrasesResponse,
36 comprehend.DetectKeyPhrasesError
37 >
38 >
39> {}
40export const DetectKeyPhrases = Binding.Service<DetectKeyPhrases>(
41 "AWS.Comprehend.DetectKeyPhrases",
42);