@devries-cameron20 / t3code Mirror · read-only
Fork 0

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

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 21, 06:00 UTC

main
ts 38 lines 1.37 KB
Raw
1 import type * as elasticache from "@distilled.cloud/aws/elasticache";
2 import * as Binding from "alchemy/Binding";
3 import type * as Effect from "effect/Effect";
4
5 /**
6 * Runtime binding for the `DescribeServerlessCaches` operation (IAM action
7 * `elasticache:DescribeServerlessCaches`).
8 *
9 * Reads the current status, endpoint, and configuration of the account's
10 * serverless caches — e.g. an operational health check that verifies a cache
11 * is `available` before routing traffic. Provide the implementation with
12 * `Effect.provide(AWS.ElastiCache.DescribeServerlessCachesHttp)`.
13 * ### Monitoring Caches
14 * **Example:** Check a Cache's Status
15 * ```typescript
16 * const describeCaches = yield* ElastiCache.DescribeServerlessCaches();
17 *
18 * const result = yield* describeCaches({ ServerlessCacheName: name });
19 * // result.ServerlessCaches?.[0]?.Status → "available"
20 * ```
21 *
22 * @binding
23 */
24 export interface DescribeServerlessCaches extends Binding.Service<
25 DescribeServerlessCaches,
26 "AWS.ElastiCache.DescribeServerlessCaches",
27 () => Effect.Effect<
28 (
29 request?: elasticache.DescribeServerlessCachesRequest,
30 ) => Effect.Effect<
31 elasticache.DescribeServerlessCachesResponse,
32 elasticache.DescribeServerlessCachesError
33 >
34 >
35 > {}
36 export const DescribeServerlessCaches = Binding.Service<DescribeServerlessCaches>(
37 "AWS.ElastiCache.DescribeServerlessCaches",
38 );