The best way to control Claude Code, Codex and more from any computer or phone
Mirrored from https://github.com/Camo67/t3code.git
Synced Nov 21, 06:00 UTC
| 1 | import type * as Lambda from "@distilled.cloud/aws/lambda"; |
| 2 | import * as Binding from "alchemy/Binding"; |
| 3 | import * as Effect from "effect/Effect"; |
| 4 | |
| 5 | /** |
| 6 | * Runtime binding for `lambda:GetAccountSettings`. |
| 7 | * |
| 8 | * An account-level binding — call it with no arguments to get a callable |
| 9 | * that reads the region's Lambda quotas (`AccountLimit`) and current usage |
| 10 | * (`AccountUsage`). Provide the `GetAccountSettingsHttp` layer on the |
| 11 | * Function to satisfy the binding. |
| 12 | * ### Account Settings |
| 13 | * **Example:** Read account limits and usage |
| 14 | * ```typescript |
| 15 | * const getAccountSettings = yield* AWS.Lambda.GetAccountSettings(); |
| 16 | * |
| 17 | * const settings = yield* getAccountSettings(); |
| 18 | * const concurrency = settings.AccountLimit?.ConcurrentExecutions; |
| 19 | * ``` |
| 20 | * |
| 21 | * @binding |
| 22 | */ |
| 23 | export interface GetAccountSettings extends Binding.Service< |
| 24 | GetAccountSettings, |
| 25 | "AWS.Lambda.GetAccountSettings", |
| 26 | () => Effect.Effect< |
| 27 | () => Effect.Effect<Lambda.GetAccountSettingsResponse, Lambda.GetAccountSettingsError> |
| 28 | > |
| 29 | > {} |
| 30 | export const GetAccountSettings = Binding.Service<GetAccountSettings>( |
| 31 | "AWS.Lambda.GetAccountSettings", |
| 32 | ); |