@devries-cameron20 / t3code Mirror · read-only
Fork 0

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

main
ts 41 lines 1.26 KB
Raw
1 import type * as servicequotas from "@distilled.cloud/aws/service-quotas";
2 import * as Binding from "alchemy/Binding";
3 import type * as Effect from "effect/Effect";
4
5 /**
6 * Runtime binding for `servicequotas:GetAWSDefaultServiceQuota` — read the
7 * AWS default value of a quota (the value that applies when no account
8 * override exists) from inside a Function.
9 *
10 * ### Reading Quotas
11 * **Example:** Read the default VPCs-per-region quota
12 * ```typescript
13 * // init
14 * const getAWSDefaultServiceQuota =
15 * yield* AWS.ServiceQuotas.GetAWSDefaultServiceQuota();
16 *
17 * // runtime
18 * const { Quota } = yield* getAWSDefaultServiceQuota({
19 * ServiceCode: "vpc",
20 * QuotaCode: "L-F678F1CE",
21 * });
22 * const defaultValue = Quota?.Value;
23 * ```
24 *
25 * @binding
26 */
27 export interface GetAWSDefaultServiceQuota extends Binding.Service<
28 GetAWSDefaultServiceQuota,
29 "AWS.ServiceQuotas.GetAWSDefaultServiceQuota",
30 () => Effect.Effect<
31 (
32 request: servicequotas.GetAWSDefaultServiceQuotaRequest,
33 ) => Effect.Effect<
34 servicequotas.GetAWSDefaultServiceQuotaResponse,
35 servicequotas.GetAWSDefaultServiceQuotaError
36 >
37 >
38 > {}
39 export const GetAWSDefaultServiceQuota = Binding.Service<GetAWSDefaultServiceQuota>(
40 "AWS.ServiceQuotas.GetAWSDefaultServiceQuota",
41 );