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

main
ts 42 lines 1.35 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 PutNotificationChannel}.
7 */
8 export interface PutNotificationChannelRequest extends fms.PutNotificationChannelRequest {}
9
10 /**
11 * Runtime binding for `fms:PutNotificationChannel`.
12 *
13 * Designates the SNS topic and IAM role that Firewall Manager uses to record SNS logs — the channel through which Firewall Manager notifications flow. Provide the
14 * implementation with `Effect.provide(AWS.FMS.PutNotificationChannelHttp)`.
15 * ### Notification Channel
16 * **Example:** Set the Notification Channel
17 * ```typescript
18 * // init — account-level binding takes no resource
19 * const putNotificationChannel = yield* AWS.FMS.PutNotificationChannel();
20 *
21 * // runtime
22 * yield* putNotificationChannel({
23 * SnsTopicArn: topicArn,
24 * SnsRoleName: roleArn,
25 * });
26 * ```
27 *
28 * @binding
29 */
30 export interface PutNotificationChannel extends Binding.Service<
31 PutNotificationChannel,
32 "AWS.FMS.PutNotificationChannel",
33 () => Effect.Effect<
34 (
35 request: PutNotificationChannelRequest,
36 ) => Effect.Effect<fms.PutNotificationChannelResponse, fms.PutNotificationChannelError>
37 >
38 > {}
39
40 export const PutNotificationChannel = Binding.Service<PutNotificationChannel>(
41 "AWS.FMS.PutNotificationChannel",
42 );