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 ListMemberAccounts}.
7 */
8export interface ListMemberAccountsRequest
9 extends fms.ListMemberAccountsRequest {}
10
11/**
12 * Runtime binding for `fms:ListMemberAccounts`.
13 *
14 * 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
15 * implementation with `Effect.provide(AWS.FMS.ListMemberAccountsHttp)`.
16 * ### Compliance and Protection Status
17 * **Example:** List Member Accounts
18 * ```typescript
19 * // init — account-level binding takes no resource
20 * const listMemberAccounts = yield* AWS.FMS.ListMemberAccounts();
21 *
22 * // runtime
23 * const result = yield* listMemberAccounts();
24 * console.log(result.MemberAccounts?.length);
25 * ```
26 *
27 * @binding
28 */
29export interface ListMemberAccounts extends Binding.Service<
30 ListMemberAccounts,
31 "AWS.FMS.ListMemberAccounts",
32 () => Effect.Effect<
33 (
34 request?: ListMemberAccountsRequest,
35 ) => Effect.Effect<
36 fms.ListMemberAccountsResponse,
37 fms.ListMemberAccountsError
38 >
39 >
40> {}
41
42export const ListMemberAccounts = Binding.Service<ListMemberAccounts>(
43 "AWS.FMS.ListMemberAccounts",
44);