@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 44 lines 1.41 KB
Raw
1 import type * as notifications from "@distilled.cloud/aws/notifications";
2 import * as Binding from "alchemy/Binding";
3 import type * as Effect from "effect/Effect";
4
5 /**
6 * Request for {@link GetNotificationEvent}.
7 */
8 export interface GetNotificationEventRequest extends notifications.GetNotificationEventRequest {}
9
10 /**
11 * Runtime binding for `notifications:GetNotificationEvent`.
12 *
13 * Fetch one notification event (headline, message components, source event
14 * metadata) by its ARN. Provide the implementation with
15 * `Effect.provide(AWS.Notifications.GetNotificationEventHttp)`.
16 * ### Reading Notification Events
17 * **Example:** Fetch a Notification Event
18 * ```typescript
19 * // init — account-level binding takes no resource
20 * const getNotificationEvent = yield* AWS.Notifications.GetNotificationEvent();
21 *
22 * // runtime
23 * const event = yield* getNotificationEvent({ arn: eventArn });
24 * const headline = event.content.messageComponents.headline;
25 * ```
26 *
27 * @binding
28 */
29 export interface GetNotificationEvent extends Binding.Service<
30 GetNotificationEvent,
31 "AWS.Notifications.GetNotificationEvent",
32 () => Effect.Effect<
33 (
34 request: GetNotificationEventRequest,
35 ) => Effect.Effect<
36 notifications.GetNotificationEventResponse,
37 notifications.GetNotificationEventError
38 >
39 >
40 > {}
41
42 export const GetNotificationEvent = Binding.Service<GetNotificationEvent>(
43 "AWS.Notifications.GetNotificationEvent",
44 );