@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, 04:45 UTC

main
ts 38 lines 1.34 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 `DescribeEvents` operation (IAM action
7 * `elasticache:DescribeEvents`).
8 *
9 * Returns events related to caches, replication groups, security groups, and
10 * parameter groups from the last hour (up to 14 days with an explicit time
11 * window) — snapshot completions, failovers, configuration changes. Provide
12 * the implementation with `Effect.provide(AWS.ElastiCache.DescribeEventsHttp)`.
13 * ### Monitoring Caches
14 * **Example:** Read a Cache's Recent Events
15 * ```typescript
16 * const describeEvents = yield* ElastiCache.DescribeEvents();
17 *
18 * const page = yield* describeEvents({
19 * SourceIdentifier: cacheName,
20 * SourceType: "serverless-cache",
21 * });
22 * for (const event of page.Events ?? []) {
23 * yield* Effect.logInfo(`${event.Date}: ${event.Message}`);
24 * }
25 * ```
26 *
27 * @binding
28 */
29 export interface DescribeEvents extends Binding.Service<
30 DescribeEvents,
31 "AWS.ElastiCache.DescribeEvents",
32 () => Effect.Effect<
33 (
34 request?: elasticache.DescribeEventsMessage,
35 ) => Effect.Effect<elasticache.EventsMessage, elasticache.DescribeEventsError>
36 >
37 > {}
38 export const DescribeEvents = Binding.Service<DescribeEvents>("AWS.ElastiCache.DescribeEvents");