Skip to content

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).

// init — account-level binding, no resource argument
const getAccountInformation = yield* AWS.Account.GetAccountInformation();
// runtime
const info = yield* getAccountInformation();
console.log(info.AccountId, info.AccountState);