Skip to content

CreateAddressListImportJob

Source: src/AWS/MailManager/CreateAddressListImportJob.ts

Runtime binding for ses:CreateAddressListImportJob.

Creates a bulk import job against the bound address list, returning the job id and a pre-signed URL to upload the address data (CSV or JSON). The address list id is injected from the binding. Provide the implementation with Effect.provide(AWS.MailManager.CreateAddressListImportJobHttp).

const createImportJob = yield* MailManager.CreateAddressListImportJob(blockList);
// runtime
const { JobId, PreSignedUrl } = yield* createImportJob({
Name: "nightly-sync",
ImportDataFormat: { ImportDataType: "CSV" },
});
// upload the CSV to PreSignedUrl, then start the job