Skip to content

GetAddressListImportJob

Source: src/AWS/MailManager/GetAddressListImportJob.ts

Runtime binding for ses:GetAddressListImportJob.

Fetches the detail and status of an import job created against the bound address list (by JobId). IAM access is granted on the bound list’s ARN. Provide the implementation with Effect.provide(AWS.MailManager.GetAddressListImportJobHttp).

const getImportJob = yield* MailManager.GetAddressListImportJob(blockList);
// runtime
const job = yield* getImportJob({ JobId });
if (job.Status === "COMPLETED") {
yield* Effect.log(`imported ${job.ImportedItemsCount} addresses`);
}