GetArchiveSearch
Source:
src/AWS/MailManager/GetArchiveSearch.ts
Runtime binding for ses:GetArchiveSearch.
Fetches the parameters and status of an archive search (by
SearchId). IAM access is granted on the bound archive’s ARN. Provide the implementation with
Effect.provide(AWS.MailManager.GetArchiveSearchHttp).
Searching the Archive
Section titled “Searching the Archive”const getSearch = yield* MailManager.GetArchiveSearch(archive);
// runtimeconst search = yield* getSearch({ SearchId }).pipe( Effect.repeat({ schedule: Schedule.spaced("2 seconds"), until: (s) => s.Status?.State === "COMPLETED" || s.Status?.State === "FAILED", times: 30, }),);