1import type * as rekognition from "@distilled.cloud/aws/rekognition";
2import type * as Effect from "effect/Effect";
3import * as Binding from "../../Binding.ts";
4
5/**
6 * Runtime binding for `rekognition:StartStreamProcessor` — start a stream processor that analyzes a Kinesis Video Stream (face search or connected-home label detection).
7 *
8 * The binding takes no arguments and grants the function
9 * `rekognition:StartStreamProcessor` on `*` (Rekognition data-plane resources such
10 * as collections, users, and jobs are routinely created at runtime, so
11 * their identifiers are unknown at deploy time). Provide the
12 * implementation with `Effect.provide(AWS.Rekognition.StartStreamProcessorHttp)`.
13 *
14 * ### Stream Processors
15 * **Example:** Start a Stream Processor
16 * ```typescript
17 * // init
18 * const startStreamProcessor = yield* AWS.Rekognition.StartStreamProcessor();
19 *
20 * // runtime
21 * const started = yield* startStreamProcessor({ Name: "lobby-camera" });
22 * // started.SessionId (connected-home processors)
23 * ```
24 *
25 * @binding
26 */
27export interface StartStreamProcessor extends Binding.Service<
28 StartStreamProcessor,
29 "AWS.Rekognition.StartStreamProcessor",
30 () => Effect.Effect<
31 (
32 request: rekognition.StartStreamProcessorRequest,
33 ) => Effect.Effect<
34 rekognition.StartStreamProcessorResponse,
35 rekognition.StartStreamProcessorError
36 >
37 >
38> {}
39export const StartStreamProcessor = Binding.Service<StartStreamProcessor>(
40 "AWS.Rekognition.StartStreamProcessor",
41);