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, 04:45 UTC
| 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 | ); |