| 1 | import type * as mm from "@distilled.cloud/aws/mailmanager"; |
| 2 | import type * as Effect from "effect/Effect"; |
| 3 | import * as Binding from "../../Binding.ts"; |
| 4 | import type { Archive } from "./Archive.ts"; |
| 5 | |
| 6 | /** |
| 7 | * Runtime binding for `ses:GetArchiveExport`. |
| 8 | * |
| 9 | * Fetches the parameters and status of an archive export (by |
| 10 | * `ExportId`). IAM access is granted on the bound archive's ARN. Provide the implementation with |
| 11 | * `Effect.provide(AWS.MailManager.GetArchiveExportHttp)`. |
| 12 | * ### Exporting from the Archive |
| 13 | * **Example:** Poll an Export |
| 14 | * ```typescript |
| 15 | * const getExport = yield* MailManager.GetArchiveExport(archive); |
| 16 | * |
| 17 | * // runtime |
| 18 | * const status = yield* getExport({ ExportId }); |
| 19 | * ``` |
| 20 | * |
| 21 | * @binding |
| 22 | */ |
| 23 | export interface GetArchiveExport extends Binding.Service< |
| 24 | GetArchiveExport, |
| 25 | "AWS.MailManager.GetArchiveExport", |
| 26 | ( |
| 27 | archive: Archive, |
| 28 | ) => Effect.Effect< |
| 29 | ( |
| 30 | request: mm.GetArchiveExportRequest, |
| 31 | ) => Effect.Effect<mm.GetArchiveExportResponse, mm.GetArchiveExportError> |
| 32 | > |
| 33 | > {} |
| 34 | export const GetArchiveExport = Binding.Service<GetArchiveExport>( |
| 35 | "AWS.MailManager.GetArchiveExport", |
| 36 | ); |