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