1import type * as servicequotas from "@distilled.cloud/aws/service-quotas";
2import type * as Effect from "effect/Effect";
3import * as Binding from "../../Binding.ts";
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 */
27export 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> {}
39export const GetAWSDefaultServiceQuota =
40 Binding.Service<GetAWSDefaultServiceQuota>(
41 "AWS.ServiceQuotas.GetAWSDefaultServiceQuota",
42 );