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

main
ts 41 lines 1.23 KB
Raw
1 import type * as licensemanager from "@distilled.cloud/aws/license-manager";
2 import * as Binding from "alchemy/Binding";
3 import type * as Effect from "effect/Effect";
4
5 /**
6 * Request for {@link GetLicenseUsage}.
7 */
8 export interface GetLicenseUsageRequest extends licensemanager.GetLicenseUsageRequest {}
9
10 /**
11 * Runtime binding for `license-manager:GetLicenseUsage` — read the
12 * per-entitlement usage counters of a seller-issued license.
13 *
14 * Provide the implementation with
15 * `Effect.provide(AWS.LicenseManager.GetLicenseUsageHttp)`.
16 * ### Reading Licenses and Grants
17 * **Example:** Read a License's Entitlement Usage
18 * ```typescript
19 * // init
20 * const getLicenseUsage = yield* AWS.LicenseManager.GetLicenseUsage();
21 *
22 * // runtime
23 * const { LicenseUsage } = yield* getLicenseUsage({
24 * LicenseArn: licenseArn,
25 * });
26 * ```
27 *
28 * @binding
29 */
30 export interface GetLicenseUsage extends Binding.Service<
31 GetLicenseUsage,
32 "AWS.LicenseManager.GetLicenseUsage",
33 () => Effect.Effect<
34 (
35 request: GetLicenseUsageRequest,
36 ) => Effect.Effect<licensemanager.GetLicenseUsageResponse, licensemanager.GetLicenseUsageError>
37 >
38 > {}
39 export const GetLicenseUsage = Binding.Service<GetLicenseUsage>(
40 "AWS.LicenseManager.GetLicenseUsage",
41 );