sailfork / t3code-github / .repos/ alchemy-effect/ packages/ aws/ src/ LicenseManager/ ListReceivedGrants.ts

import type * as licensemanager from "@distilled.cloud/aws/license-manager";
import * as Binding from "alchemy/Binding";
import type * as Effect from "effect/Effect";

/**
 * Request for {@link ListReceivedGrants}.
 */
export interface ListReceivedGrantsRequest extends licensemanager.ListReceivedGrantsRequest {}

/**
 * Runtime binding for `license-manager:ListReceivedGrants` — list the
 * grants distributed to this account, e.g. to find pending grants to
 * {@link AcceptGrant}.
 *
 * Provide the implementation with
 * `Effect.provide(AWS.LicenseManager.ListReceivedGrantsHttp)`.
 * ### Managing Grants
 * **Example:** List Received Grants
 * ```typescript
 * // init
 * const listReceivedGrants =
 *   yield* AWS.LicenseManager.ListReceivedGrants();
 *
 * // runtime
 * const { Grants } = yield* listReceivedGrants();
 * ```
 *
 * @binding
 */
export interface ListReceivedGrants extends Binding.Service<
  ListReceivedGrants,
  "AWS.LicenseManager.ListReceivedGrants",
  () => Effect.Effect<
    (
      request?: ListReceivedGrantsRequest,
    ) => Effect.Effect<
      licensemanager.ListReceivedGrantsResponse,
      licensemanager.ListReceivedGrantsError
    >
  >
> {}
export const ListReceivedGrants = Binding.Service<ListReceivedGrants>(
  "AWS.LicenseManager.ListReceivedGrants",
);