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 GetGrant}.
7 */
8export interface GetGrantRequest extends licensemanager.GetGrantRequest {}
9
10/**
11 * Runtime binding for `license-manager:GetGrant` — read a license grant's
12 * details (grantee, allowed operations, status) by ARN.
13 *
14 * Provide the implementation with
15 * `Effect.provide(AWS.LicenseManager.GetGrantHttp)`.
16 * ### Reading Licenses and Grants
17 * **Example:** Read a Grant
18 * ```typescript
19 * // init
20 * const getGrant = yield* AWS.LicenseManager.GetGrant();
21 *
22 * // runtime
23 * const { Grant } = yield* getGrant({ GrantArn: grantArn });
24 * ```
25 *
26 * @binding
27 */
28export interface GetGrant extends Binding.Service<
29 GetGrant,
30 "AWS.LicenseManager.GetGrant",
31 () => Effect.Effect<
32 (
33 request: GetGrantRequest,
34 ) => Effect.Effect<
35 licensemanager.GetGrantResponse,
36 licensemanager.GetGrantError
37 >
38 >
39> {}
40export const GetGrant = Binding.Service<GetGrant>(
41 "AWS.LicenseManager.GetGrant",
42);