The best way to control Claude Code, Codex and more from any computer or phone

main
ts 42 lines 1.34 KB
Raw
1 import type * as licensemanager from "@distilled.cloud/aws/license-manager";
2 import * as Binding from "alchemy/Binding";
3 import type * as Effect from "effect/Effect";
4
5 /**
6 * Request for {@link DeleteLicense}.
7 */
8 export interface DeleteLicenseRequest extends licensemanager.DeleteLicenseRequest {}
9
10 /**
11 * Runtime binding for `license-manager:DeleteLicense` — delete a
12 * seller-issued license (e.g. on refund or subscription cancellation). The
13 * license's current version must be passed as `SourceVersion`.
14 *
15 * Provide the implementation with
16 * `Effect.provide(AWS.LicenseManager.DeleteLicenseHttp)`.
17 * ### Issuing Licenses
18 * **Example:** Delete a License on Cancellation
19 * ```typescript
20 * // init
21 * const deleteLicense = yield* AWS.LicenseManager.DeleteLicense();
22 *
23 * // runtime
24 * const { License } = yield* getLicense({ LicenseArn: licenseArn });
25 * yield* deleteLicense({
26 * LicenseArn: licenseArn,
27 * SourceVersion: License!.Version!,
28 * });
29 * ```
30 *
31 * @binding
32 */
33 export interface DeleteLicense extends Binding.Service<
34 DeleteLicense,
35 "AWS.LicenseManager.DeleteLicense",
36 () => Effect.Effect<
37 (
38 request: DeleteLicenseRequest,
39 ) => Effect.Effect<licensemanager.DeleteLicenseResponse, licensemanager.DeleteLicenseError>
40 >
41 > {}
42 export const DeleteLicense = Binding.Service<DeleteLicense>("AWS.LicenseManager.DeleteLicense");