@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 39 lines 1.23 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 DeleteGrant}.
7 */
8 export interface DeleteGrantRequest extends licensemanager.DeleteGrantRequest {}
9
10 /**
11 * Runtime binding for `license-manager:DeleteGrant` — retire a grant (e.g.
12 * when a customer's subscription lapses). The grant's current version must
13 * be passed as `Version`.
14 *
15 * Provide the implementation with
16 * `Effect.provide(AWS.LicenseManager.DeleteGrantHttp)`.
17 * ### Managing Grants
18 * **Example:** Delete a Grant
19 * ```typescript
20 * // init
21 * const deleteGrant = yield* AWS.LicenseManager.DeleteGrant();
22 *
23 * // runtime
24 * const { Grant } = yield* getGrant({ GrantArn: grantArn });
25 * yield* deleteGrant({ GrantArn: grantArn, Version: Grant!.Version! });
26 * ```
27 *
28 * @binding
29 */
30 export interface DeleteGrant extends Binding.Service<
31 DeleteGrant,
32 "AWS.LicenseManager.DeleteGrant",
33 () => Effect.Effect<
34 (
35 request: DeleteGrantRequest,
36 ) => Effect.Effect<licensemanager.DeleteGrantResponse, licensemanager.DeleteGrantError>
37 >
38 > {}
39 export const DeleteGrant = Binding.Service<DeleteGrant>("AWS.LicenseManager.DeleteGrant");