The best way to control Claude Code, Codex and more from any computer or phone

main
ts 38 lines 1.39 KB
Raw
1 import type * as rekognition from "@distilled.cloud/aws/rekognition";
2 import * as Binding from "alchemy/Binding";
3 import type * as Effect from "effect/Effect";
4
5 /**
6 * Runtime binding for `rekognition:DescribeCollection` — describe a face collection — face count, face model version, ARN, and creation time.
7 *
8 * The binding takes no arguments and grants the function
9 * `rekognition:DescribeCollection` 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.DescribeCollectionHttp)`.
13 *
14 * ### Face Collections
15 * **Example:** Describe a Collection
16 * ```typescript
17 * // init
18 * const describeCollection = yield* AWS.Rekognition.DescribeCollection();
19 *
20 * // runtime
21 * const info = yield* describeCollection({ CollectionId: "tenant-42" });
22 * // info.FaceCount, info.FaceModelVersion
23 * ```
24 *
25 * @binding
26 */
27 export interface DescribeCollection extends Binding.Service<
28 DescribeCollection,
29 "AWS.Rekognition.DescribeCollection",
30 () => Effect.Effect<
31 (
32 request: rekognition.DescribeCollectionRequest,
33 ) => Effect.Effect<rekognition.DescribeCollectionResponse, rekognition.DescribeCollectionError>
34 >
35 > {}
36 export const DescribeCollection = Binding.Service<DescribeCollection>(
37 "AWS.Rekognition.DescribeCollection",
38 );