@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.29 KB
Raw
1 import type * as memorydb from "@distilled.cloud/aws/memorydb";
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 * `memorydb:DescribeEvents`).
8 *
9 * Returns events related to clusters, security groups, and parameter groups
10 * from the last hour (up to 14 days with an explicit time window) — snapshot
11 * completions, failovers, configuration changes. Provide the implementation
12 * with `Effect.provide(AWS.MemoryDB.DescribeEventsHttp)`.
13 * ### Monitoring Clusters
14 * **Example:** Read a Cluster's Recent Events
15 * ```typescript
16 * const describeEvents = yield* MemoryDB.DescribeEvents();
17 *
18 * const page = yield* describeEvents({
19 * SourceName: clusterName,
20 * SourceType: "cluster",
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.MemoryDB.DescribeEvents",
32 () => Effect.Effect<
33 (
34 request?: memorydb.DescribeEventsRequest,
35 ) => Effect.Effect<memorydb.DescribeEventsResponse, memorydb.DescribeEventsError>
36 >
37 > {}
38 export const DescribeEvents = Binding.Service<DescribeEvents>("AWS.MemoryDB.DescribeEvents");