@devries-cameron20 / t3code Mirror · read-only
Fork 0

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

main
ts 38 lines 1.15 KB
Raw
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 GetLicense}.
7 */
8 export 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 */
29 export interface GetLicense extends Binding.Service<
30 GetLicense,
31 "AWS.LicenseManager.GetLicense",
32 () => Effect.Effect<
33 (
34 request: GetLicenseRequest,
35 ) => Effect.Effect<licensemanager.GetLicenseResponse, licensemanager.GetLicenseError>
36 >
37 > {}
38 export const GetLicense = Binding.Service<GetLicense>("AWS.LicenseManager.GetLicense");