import type * as licensemanager from "@distilled.cloud/aws/license-manager";
import * as Binding from "alchemy/Binding";
import type * as Effect from "effect/Effect";
/**
* Request for {@link ExtendLicenseConsumption}.
*/
export interface ExtendLicenseConsumptionRequest
extends licensemanager.ExtendLicenseConsumptionRequest {}
/**
* Runtime binding for `license-manager:ExtendLicenseConsumption` — extend
* a `PROVISIONAL` checkout's expiration before it lapses, keeping a
* long-running consumer's entitlement active.
*
* Provide the implementation with
* `Effect.provide(AWS.LicenseManager.ExtendLicenseConsumptionHttp)`.
* ### License Checkout Data Plane
* **Example:** Extend a Provisional Checkout
* ```typescript
* // init
* const extendConsumption =
* yield* AWS.LicenseManager.ExtendLicenseConsumption();
*
* // runtime
* const { Expiration } = yield* extendConsumption({
* LicenseConsumptionToken: token,
* });
* ```
*
* @binding
*/
export interface ExtendLicenseConsumption extends Binding.Service<
ExtendLicenseConsumption,
"AWS.LicenseManager.ExtendLicenseConsumption",
() => Effect.Effect<
(
request: ExtendLicenseConsumptionRequest,
) => Effect.Effect<
licensemanager.ExtendLicenseConsumptionResponse,
licensemanager.ExtendLicenseConsumptionError
>
>
> {}
export const ExtendLicenseConsumption = Binding.Service<ExtendLicenseConsumption>(
"AWS.LicenseManager.ExtendLicenseConsumption",
);