1import type * as licensemanager from "@distilled.cloud/aws/license-manager";
2import type * as Effect from "effect/Effect";
3import * as Binding from "../../Binding.ts";
4
5/**
6 * Request for {@link CheckInLicense}.
7 */
8export interface CheckInLicenseRequest
9 extends licensemanager.CheckInLicenseRequest {}
10
11/**
12 * Runtime binding for `license-manager:CheckInLicense` — return a
13 * previously checked-out entitlement to the license pool using the
14 * consumption token from {@link CheckoutLicense}.
15 *
16 * Provide the implementation with
17 * `Effect.provide(AWS.LicenseManager.CheckInLicenseHttp)`.
18 * ### License Checkout Data Plane
19 * **Example:** Check an Entitlement Back In
20 * ```typescript
21 * // init
22 * const checkInLicense = yield* AWS.LicenseManager.CheckInLicense();
23 *
24 * // runtime
25 * yield* checkInLicense({ LicenseConsumptionToken: token });
26 * ```
27 *
28 * @binding
29 */
30export interface CheckInLicense extends Binding.Service<
31 CheckInLicense,
32 "AWS.LicenseManager.CheckInLicense",
33 () => Effect.Effect<
34 (
35 request: CheckInLicenseRequest,
36 ) => Effect.Effect<
37 licensemanager.CheckInLicenseResponse,
38 licensemanager.CheckInLicenseError
39 >
40 >
41> {}
42export const CheckInLicense = Binding.Service<CheckInLicense>(
43 "AWS.LicenseManager.CheckInLicense",
44);