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

main
ts 44 lines 1.27 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 ListReceivedGrants}.
7 */
8 export interface ListReceivedGrantsRequest extends licensemanager.ListReceivedGrantsRequest {}
9
10 /**
11 * Runtime binding for `license-manager:ListReceivedGrants` — list the
12 * grants distributed to this account, e.g. to find pending grants to
13 * {@link AcceptGrant}.
14 *
15 * Provide the implementation with
16 * `Effect.provide(AWS.LicenseManager.ListReceivedGrantsHttp)`.
17 * ### Managing Grants
18 * **Example:** List Received Grants
19 * ```typescript
20 * // init
21 * const listReceivedGrants =
22 * yield* AWS.LicenseManager.ListReceivedGrants();
23 *
24 * // runtime
25 * const { Grants } = yield* listReceivedGrants();
26 * ```
27 *
28 * @binding
29 */
30 export interface ListReceivedGrants extends Binding.Service<
31 ListReceivedGrants,
32 "AWS.LicenseManager.ListReceivedGrants",
33 () => Effect.Effect<
34 (
35 request?: ListReceivedGrantsRequest,
36 ) => Effect.Effect<
37 licensemanager.ListReceivedGrantsResponse,
38 licensemanager.ListReceivedGrantsError
39 >
40 >
41 > {}
42 export const ListReceivedGrants = Binding.Service<ListReceivedGrants>(
43 "AWS.LicenseManager.ListReceivedGrants",
44 );