The best way to control Claude Code, Codex and more from any computer or phone

main
ts 36 lines 1.29 KB
Raw
1 import type * as account from "@distilled.cloud/aws/account";
2 import * as Binding from "alchemy/Binding";
3 import type * as Effect from "effect/Effect";
4
5 /**
6 * Runtime binding for `account:GetAccountInformation`.
7 *
8 * Reads the calling account's metadata — account id, account name, creation
9 * date, and account state. Account Management is an account singleton, so the
10 * binding takes no resource argument. Provide the implementation with
11 * `Effect.provide(AWS.Account.GetAccountInformationHttp)`.
12 * ### Reading Account Settings
13 * **Example:** Read the Account's Name and State
14 * ```typescript
15 * // init — account-level binding, no resource argument
16 * const getAccountInformation = yield* AWS.Account.GetAccountInformation();
17 *
18 * // runtime
19 * const info = yield* getAccountInformation();
20 * console.log(info.AccountId, info.AccountState);
21 * ```
22 *
23 * @binding
24 */
25 export interface GetAccountInformation extends Binding.Service<
26 GetAccountInformation,
27 "AWS.Account.GetAccountInformation",
28 () => Effect.Effect<
29 (
30 request?: account.GetAccountInformationRequest,
31 ) => Effect.Effect<account.GetAccountInformationResponse, account.GetAccountInformationError>
32 >
33 > {}
34 export const GetAccountInformation = Binding.Service<GetAccountInformation>(
35 "AWS.Account.GetAccountInformation",
36 );