Skip to content

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).

const getSearch = yield* MailManager.GetArchiveSearch(archive);
// runtime
const search = yield* getSearch({ SearchId }).pipe(
Effect.repeat({
schedule: Schedule.spaced("2 seconds"),
until: (s) => s.Status?.State === "COMPLETED" || s.Status?.State === "FAILED",
times: 30,
}),
);