| 1 | import type * as licensemanager from "@distilled.cloud/aws/license-manager"; |
| 2 | import type * as Effect from "effect/Effect"; |
| 3 | import * as Binding from "../../Binding.ts"; |
| 4 | |
| 5 | /** |
| 6 | * Request for {@link AcceptGrant}. |
| 7 | */ |
| 8 | export interface AcceptGrantRequest extends licensemanager.AcceptGrantRequest {} |
| 9 | |
| 10 | /** |
| 11 | * Runtime binding for `license-manager:AcceptGrant` — accept a license |
| 12 | * grant that another account distributed to this account, activating the |
| 13 | * granted entitlements. |
| 14 | * |
| 15 | * Provide the implementation with |
| 16 | * `Effect.provide(AWS.LicenseManager.AcceptGrantHttp)`. |
| 17 | * ### Managing Grants |
| 18 | * **Example:** Accept a Received Grant |
| 19 | * ```typescript |
| 20 | * // init |
| 21 | * const acceptGrant = yield* AWS.LicenseManager.AcceptGrant(); |
| 22 | * |
| 23 | * // runtime |
| 24 | * const { Status } = yield* acceptGrant({ GrantArn: grantArn }); |
| 25 | * ``` |
| 26 | * |
| 27 | * @binding |
| 28 | */ |
| 29 | export interface AcceptGrant extends Binding.Service< |
| 30 | AcceptGrant, |
| 31 | "AWS.LicenseManager.AcceptGrant", |
| 32 | () => Effect.Effect< |
| 33 | ( |
| 34 | request: AcceptGrantRequest, |
| 35 | ) => Effect.Effect< |
| 36 | licensemanager.AcceptGrantResponse, |
| 37 | licensemanager.AcceptGrantError |
| 38 | > |
| 39 | > |
| 40 | > {} |
| 41 | export const AcceptGrant = Binding.Service<AcceptGrant>( |
| 42 | "AWS.LicenseManager.AcceptGrant", |
| 43 | ); |