Skip to content

GetContactInformation

Source: src/AWS/Account/GetContactInformation.ts

Runtime binding for account:GetContactInformation.

Reads the calling account’s primary contact — full name, address, phone number, and company. The contact fields are marked sensitive at the wire level, so distilled returns them as string | Redacted<string>. Account Management is an account singleton, so the binding takes no resource argument. Provide the implementation with Effect.provide(AWS.Account.GetContactInformationHttp).

// init — account-level binding, no resource argument
const getContactInformation = yield* AWS.Account.GetContactInformation();
// runtime
const { ContactInformation } = yield* getContactInformation();
console.log(ContactInformation?.CountryCode);