The best way to control Claude Code, Codex and more from any computer or phone
| 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 CheckInLicense}. |
| 7 | */ |
| 8 | export interface CheckInLicenseRequest extends licensemanager.CheckInLicenseRequest {} |
| 9 | |
| 10 | /** |
| 11 | * Runtime binding for `license-manager:CheckInLicense` — return a |
| 12 | * previously checked-out entitlement to the license pool using the |
| 13 | * consumption token from {@link CheckoutLicense}. |
| 14 | * |
| 15 | * Provide the implementation with |
| 16 | * `Effect.provide(AWS.LicenseManager.CheckInLicenseHttp)`. |
| 17 | * ### License Checkout Data Plane |
| 18 | * **Example:** Check an Entitlement Back In |
| 19 | * ```typescript |
| 20 | * // init |
| 21 | * const checkInLicense = yield* AWS.LicenseManager.CheckInLicense(); |
| 22 | * |
| 23 | * // runtime |
| 24 | * yield* checkInLicense({ LicenseConsumptionToken: token }); |
| 25 | * ``` |
| 26 | * |
| 27 | * @binding |
| 28 | */ |
| 29 | export interface CheckInLicense extends Binding.Service< |
| 30 | CheckInLicense, |
| 31 | "AWS.LicenseManager.CheckInLicense", |
| 32 | () => Effect.Effect< |
| 33 | ( |
| 34 | request: CheckInLicenseRequest, |
| 35 | ) => Effect.Effect<licensemanager.CheckInLicenseResponse, licensemanager.CheckInLicenseError> |
| 36 | > |
| 37 | > {} |
| 38 | export const CheckInLicense = Binding.Service<CheckInLicense>("AWS.LicenseManager.CheckInLicense"); |