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 RejectGrant}.
7 */
8export interface RejectGrantRequest extends licensemanager.RejectGrantRequest {}
9
10/**
11 * Runtime binding for `license-manager:RejectGrant` — reject a license
12 * grant that another account distributed to this account.
13 *
14 * Provide the implementation with
15 * `Effect.provide(AWS.LicenseManager.RejectGrantHttp)`.
16 * ### Managing Grants
17 * **Example:** Reject a Received Grant
18 * ```typescript
19 * // init
20 * const rejectGrant = yield* AWS.LicenseManager.RejectGrant();
21 *
22 * // runtime
23 * const { Status } = yield* rejectGrant({ GrantArn: grantArn });
24 * ```
25 *
26 * @binding
27 */
28export interface RejectGrant extends Binding.Service<
29 RejectGrant,
30 "AWS.LicenseManager.RejectGrant",
31 () => Effect.Effect<
32 (
33 request: RejectGrantRequest,
34 ) => Effect.Effect<
35 licensemanager.RejectGrantResponse,
36 licensemanager.RejectGrantError
37 >
38 >
39> {}
40export const RejectGrant = Binding.Service<RejectGrant>(
41 "AWS.LicenseManager.RejectGrant",
42);