Skip to content

ListMemberAccounts

Source: src/AWS/FMS/ListMemberAccounts.ts

Runtime binding for fms:ListMemberAccounts.

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 implementation with Effect.provide(AWS.FMS.ListMemberAccountsHttp).

// init — account-level binding takes no resource
const listMemberAccounts = yield* AWS.FMS.ListMemberAccounts();
// runtime
const result = yield* listMemberAccounts();
console.log(result.MemberAccounts?.length);