@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, 06:00 UTC

main
ts 37 lines 1.08 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 GetGrant}.
7 */
8 export interface GetGrantRequest extends licensemanager.GetGrantRequest {}
9
10 /**
11 * Runtime binding for `license-manager:GetGrant` — read a license grant's
12 * details (grantee, allowed operations, status) by ARN.
13 *
14 * Provide the implementation with
15 * `Effect.provide(AWS.LicenseManager.GetGrantHttp)`.
16 * ### Reading Licenses and Grants
17 * **Example:** Read a Grant
18 * ```typescript
19 * // init
20 * const getGrant = yield* AWS.LicenseManager.GetGrant();
21 *
22 * // runtime
23 * const { Grant } = yield* getGrant({ GrantArn: grantArn });
24 * ```
25 *
26 * @binding
27 */
28 export interface GetGrant extends Binding.Service<
29 GetGrant,
30 "AWS.LicenseManager.GetGrant",
31 () => Effect.Effect<
32 (
33 request: GetGrantRequest,
34 ) => Effect.Effect<licensemanager.GetGrantResponse, licensemanager.GetGrantError>
35 >
36 > {}
37 export const GetGrant = Binding.Service<GetGrant>("AWS.LicenseManager.GetGrant");