1import type * as mm from "@distilled.cloud/aws/mailmanager";
2import type * as Effect from "effect/Effect";
3import * as Binding from "../../Binding.ts";
4import 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 */
23export 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> {}
34export const StopArchiveExport = Binding.Service<StopArchiveExport>(
35 "AWS.MailManager.StopArchiveExport",
36);