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

main
ts 41 lines 1.17 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 PutAppsList}.
7 */
8 export interface PutAppsListRequest extends fms.PutAppsListRequest {}
9
10 /**
11 * Runtime binding for `fms:PutAppsList`.
12 *
13 * Creates or updates a Firewall Manager applications list. Provide the
14 * implementation with `Effect.provide(AWS.FMS.PutAppsListHttp)`.
15 * ### Applications Lists
16 * **Example:** Create an Applications List
17 * ```typescript
18 * // init — account-level binding takes no resource
19 * const putAppsList = yield* AWS.FMS.PutAppsList();
20 *
21 * // runtime
22 * const result = yield* putAppsList({
23 * AppsList: {
24 * ListName: "allowed-apps",
25 * AppsList: [{ AppName: "web", Protocol: "TCP", Port: 443 }],
26 * },
27 * });
28 * console.log(result.AppsList?.ListId);
29 * ```
30 *
31 * @binding
32 */
33 export interface PutAppsList extends Binding.Service<
34 PutAppsList,
35 "AWS.FMS.PutAppsList",
36 () => Effect.Effect<
37 (request: PutAppsListRequest) => Effect.Effect<fms.PutAppsListResponse, fms.PutAppsListError>
38 >
39 > {}
40
41 export const PutAppsList = Binding.Service<PutAppsList>("AWS.FMS.PutAppsList");