Skip to content

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

// init — account-level binding, no resource argument
const getAlternateContact = yield* AWS.Account.GetAlternateContact();
// runtime
const billing = yield* getAlternateContact({
AlternateContactType: "BILLING",
}).pipe(
Effect.catchTag("ResourceNotFoundException", () =>
Effect.succeed({ AlternateContact: undefined }),
),
);