GetAlternateContact
Source:
src/AWS/Account/GetAlternateContact.ts
Runtime binding for account:GetAlternateContact.
Reads one of the calling account’s alternate contacts (BILLING,
OPERATIONS, or SECURITY). When the requested contact type has never
been set, the operation fails with the typed
ResourceNotFoundException. Account Management is an account singleton,
so the binding takes no resource argument. Provide the implementation with
Effect.provide(AWS.Account.GetAlternateContactHttp).
Reading Account Settings
Section titled “Reading Account Settings”// init — account-level binding, no resource argumentconst getAlternateContact = yield* AWS.Account.GetAlternateContact();
// runtimeconst billing = yield* getAlternateContact({ AlternateContactType: "BILLING",}).pipe( Effect.catchTag("ResourceNotFoundException", () => Effect.succeed({ AlternateContact: undefined }), ),);