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

main
ts 38 lines 1.3 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 ListMemberAccounts}.
7 */
8 export interface ListMemberAccountsRequest extends fms.ListMemberAccountsRequest {}
9
10 /**
11 * Runtime binding for `fms:ListMemberAccounts`.
12 *
13 * Returns the member account ids in the administrator's Amazon Web Services organization — only usable by the organization's management account or a delegated administrator. Provide the
14 * implementation with `Effect.provide(AWS.FMS.ListMemberAccountsHttp)`.
15 * ### Compliance and Protection Status
16 * **Example:** List Member Accounts
17 * ```typescript
18 * // init — account-level binding takes no resource
19 * const listMemberAccounts = yield* AWS.FMS.ListMemberAccounts();
20 *
21 * // runtime
22 * const result = yield* listMemberAccounts();
23 * console.log(result.MemberAccounts?.length);
24 * ```
25 *
26 * @binding
27 */
28 export interface ListMemberAccounts extends Binding.Service<
29 ListMemberAccounts,
30 "AWS.FMS.ListMemberAccounts",
31 () => Effect.Effect<
32 (
33 request?: ListMemberAccountsRequest,
34 ) => Effect.Effect<fms.ListMemberAccountsResponse, fms.ListMemberAccountsError>
35 >
36 > {}
37
38 export const ListMemberAccounts = Binding.Service<ListMemberAccounts>("AWS.FMS.ListMemberAccounts");