1import type * as mm from "@distilled.cloud/aws/mailmanager";
2import type * as Effect from "effect/Effect";
3import * as Binding from "../../Binding.ts";
4import type { AddressList } from "./AddressList.ts";
5
6/**
7 * Runtime binding for `ses:GetAddressListImportJob`.
8 *
9 * Fetches the detail and status of an import job created against the
10 * bound address list (by `JobId`). IAM access is granted on the bound
11 * list's ARN. Provide the implementation with
12 * `Effect.provide(AWS.MailManager.GetAddressListImportJobHttp)`.
13 * ### Bulk Importing Members
14 * **Example:** Poll an Import Job
15 * ```typescript
16 * const getImportJob = yield* MailManager.GetAddressListImportJob(blockList);
17 *
18 * // runtime
19 * const job = yield* getImportJob({ JobId });
20 * if (job.Status === "COMPLETED") {
21 * yield* Effect.log(`imported ${job.ImportedItemsCount} addresses`);
22 * }
23 * ```
24 *
25 * @binding
26 */
27export interface GetAddressListImportJob extends Binding.Service<
28 GetAddressListImportJob,
29 "AWS.MailManager.GetAddressListImportJob",
30 (
31 list: AddressList,
32 ) => Effect.Effect<
33 (
34 request: mm.GetAddressListImportJobRequest,
35 ) => Effect.Effect<
36 mm.GetAddressListImportJobResponse,
37 mm.GetAddressListImportJobError
38 >
39 >
40> {}
41export const GetAddressListImportJob = Binding.Service<GetAddressListImportJob>(
42 "AWS.MailManager.GetAddressListImportJob",
43);