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 GetLicense}.
7 */
8export interface GetLicenseRequest extends licensemanager.GetLicenseRequest {}
9
10/**
11 * Runtime binding for `license-manager:GetLicense` — read a seller-issued
12 * license's details (issuer, entitlements, validity, consumption
13 * configuration) by ARN.
14 *
15 * Provide the implementation with
16 * `Effect.provide(AWS.LicenseManager.GetLicenseHttp)`.
17 * ### Reading Licenses and Grants
18 * **Example:** Read a License
19 * ```typescript
20 * // init
21 * const getLicense = yield* AWS.LicenseManager.GetLicense();
22 *
23 * // runtime
24 * const { License } = yield* getLicense({ LicenseArn: licenseArn });
25 * ```
26 *
27 * @binding
28 */
29export interface GetLicense extends Binding.Service<
30 GetLicense,
31 "AWS.LicenseManager.GetLicense",
32 () => Effect.Effect<
33 (
34 request: GetLicenseRequest,
35 ) => Effect.Effect<
36 licensemanager.GetLicenseResponse,
37 licensemanager.GetLicenseError
38 >
39 >
40> {}
41export const GetLicense = Binding.Service<GetLicense>(
42 "AWS.LicenseManager.GetLicense",
43);