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

main
ts 40 lines 1.26 KB
Raw
1 import type * as fms from "@distilled.cloud/aws/fms";
2 import * as Binding from "alchemy/Binding";
3 import type * as Effect from "effect/Effect";
4
5 /**
6 * Request for {@link GetNotificationChannel}.
7 */
8 export interface GetNotificationChannelRequest extends fms.GetNotificationChannelRequest {}
9
10 /**
11 * Runtime binding for `fms:GetNotificationChannel`.
12 *
13 * Returns the SNS topic that is used to record Firewall Manager SNS logs. Provide the
14 * implementation with `Effect.provide(AWS.FMS.GetNotificationChannelHttp)`.
15 * ### Notification Channel
16 * **Example:** Read the Notification Channel
17 * ```typescript
18 * // init — account-level binding takes no resource
19 * const getNotificationChannel = yield* AWS.FMS.GetNotificationChannel();
20 *
21 * // runtime
22 * const result = yield* getNotificationChannel();
23 * console.log(result.SnsTopicArn);
24 * ```
25 *
26 * @binding
27 */
28 export interface GetNotificationChannel extends Binding.Service<
29 GetNotificationChannel,
30 "AWS.FMS.GetNotificationChannel",
31 () => Effect.Effect<
32 (
33 request?: GetNotificationChannelRequest,
34 ) => Effect.Effect<fms.GetNotificationChannelResponse, fms.GetNotificationChannelError>
35 >
36 > {}
37
38 export const GetNotificationChannel = Binding.Service<GetNotificationChannel>(
39 "AWS.FMS.GetNotificationChannel",
40 );