sailfork / t3code-github / .repos/ alchemy-effect/ packages/ aws/ src/ LicenseManager/ RejectGrant.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 RejectGrant}.
 */
export interface RejectGrantRequest extends licensemanager.RejectGrantRequest {}

/**
 * Runtime binding for `license-manager:RejectGrant` — reject a license
 * grant that another account distributed to this account.
 *
 * Provide the implementation with
 * `Effect.provide(AWS.LicenseManager.RejectGrantHttp)`.
 * ### Managing Grants
 * **Example:** Reject a Received Grant
 * ```typescript
 * // init
 * const rejectGrant = yield* AWS.LicenseManager.RejectGrant();
 *
 * // runtime
 * const { Status } = yield* rejectGrant({ GrantArn: grantArn });
 * ```
 *
 * @binding
 */
export interface RejectGrant extends Binding.Service<
  RejectGrant,
  "AWS.LicenseManager.RejectGrant",
  () => Effect.Effect<
    (
      request: RejectGrantRequest,
    ) => Effect.Effect<licensemanager.RejectGrantResponse, licensemanager.RejectGrantError>
  >
> {}
export const RejectGrant = Binding.Service<RejectGrant>("AWS.LicenseManager.RejectGrant");