The best way to control Claude Code, Codex and more from any computer or phone

main
ts 48 lines 1.5 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 CreateGrantVersion}.
7 */
8 export interface CreateGrantVersionRequest extends licensemanager.CreateGrantVersionRequest {}
9
10 /**
11 * Runtime binding for `license-manager:CreateGrantVersion` — publish a new
12 * version of an existing grant. This is also how a recipient **activates**
13 * an accepted grant: create a version with `Status: "ACTIVE"` (and how a
14 * grantor amends allowed operations or deactivates a grant).
15 *
16 * Provide the implementation with
17 * `Effect.provide(AWS.LicenseManager.CreateGrantVersionHttp)`.
18 * ### Managing Grants
19 * **Example:** Activate an Accepted Grant
20 * ```typescript
21 * // init
22 * const createGrantVersion = yield* AWS.LicenseManager.CreateGrantVersion();
23 *
24 * // runtime — after acceptGrant({ GrantArn })
25 * yield* createGrantVersion({
26 * GrantArn: grantArn,
27 * Status: "ACTIVE",
28 * ClientToken: crypto.randomUUID(),
29 * });
30 * ```
31 *
32 * @binding
33 */
34 export interface CreateGrantVersion extends Binding.Service<
35 CreateGrantVersion,
36 "AWS.LicenseManager.CreateGrantVersion",
37 () => Effect.Effect<
38 (
39 request: CreateGrantVersionRequest,
40 ) => Effect.Effect<
41 licensemanager.CreateGrantVersionResponse,
42 licensemanager.CreateGrantVersionError
43 >
44 >
45 > {}
46 export const CreateGrantVersion = Binding.Service<CreateGrantVersion>(
47 "AWS.LicenseManager.CreateGrantVersion",
48 );