GetAccountInformation
Source:
src/AWS/Account/GetAccountInformation.ts
Runtime binding for account:GetAccountInformation.
Reads the calling account’s metadata — account id, account name, creation
date, and account state. Account Management is an account singleton, so the
binding takes no resource argument. Provide the implementation with
Effect.provide(AWS.Account.GetAccountInformationHttp).
Reading Account Settings
Section titled “Reading Account Settings”// init — account-level binding, no resource argumentconst getAccountInformation = yield* AWS.Account.GetAccountInformation();
// runtimeconst info = yield* getAccountInformation();console.log(info.AccountId, info.AccountState);