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