1import type * as account from "@distilled.cloud/aws/account";
2import type * as Effect from "effect/Effect";
3import * as Binding from "../../Binding.ts";
4
5/**
6 * Runtime binding for `account:GetContactInformation`.
7 *
8 * Reads the calling account's primary contact — full name, address, phone
9 * number, and company. The contact fields are marked sensitive at the wire
10 * level, so distilled returns them as `string | Redacted<string>`. Account
11 * Management is an account singleton, so the binding takes no resource
12 * argument. Provide the implementation with
13 * `Effect.provide(AWS.Account.GetContactInformationHttp)`.
14 * ### Reading Account Settings
15 * **Example:** Read the Primary Contact
16 * ```typescript
17 * // init — account-level binding, no resource argument
18 * const getContactInformation = yield* AWS.Account.GetContactInformation();
19 *
20 * // runtime
21 * const { ContactInformation } = yield* getContactInformation();
22 * console.log(ContactInformation?.CountryCode);
23 * ```
24 *
25 * @binding
26 */
27export interface GetContactInformation extends Binding.Service<
28 GetContactInformation,
29 "AWS.Account.GetContactInformation",
30 () => Effect.Effect<
31 (
32 request?: account.GetContactInformationRequest,
33 ) => Effect.Effect<
34 account.GetContactInformationResponse,
35 account.GetContactInformationError
36 >
37 >
38> {}
39export const GetContactInformation = Binding.Service<GetContactInformation>(
40 "AWS.Account.GetContactInformation",
41);