@devries-cameron20 / t3code Mirror · read-only
Fork 0

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

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 21, 04:45 UTC

main
ts 36 lines 1.08 KB
Raw
1 import type * as mm from "@distilled.cloud/aws/mailmanager";
2 import * as Binding from "alchemy/Binding";
3 import type * as Effect from "effect/Effect";
4 import type { Archive } from "./Archive.ts";
5
6 /**
7 * Runtime binding for `ses:StopArchiveExport`.
8 *
9 * Cancels a queued or running archive export (by `ExportId`). IAM
10 * access is granted on the bound archive's ARN. Provide the implementation with
11 * `Effect.provide(AWS.MailManager.StopArchiveExportHttp)`.
12 * ### Exporting from the Archive
13 * **Example:** Cancel an Export
14 * ```typescript
15 * const stopExport = yield* MailManager.StopArchiveExport(archive);
16 *
17 * // runtime
18 * yield* stopExport({ ExportId });
19 * ```
20 *
21 * @binding
22 */
23 export interface StopArchiveExport extends Binding.Service<
24 StopArchiveExport,
25 "AWS.MailManager.StopArchiveExport",
26 (
27 archive: Archive,
28 ) => Effect.Effect<
29 (
30 request: mm.StopArchiveExportRequest,
31 ) => Effect.Effect<mm.StopArchiveExportResponse, mm.StopArchiveExportError>
32 >
33 > {}
34 export const StopArchiveExport = Binding.Service<StopArchiveExport>(
35 "AWS.MailManager.StopArchiveExport",
36 );